Home
last modified time | relevance | path

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

1234

/linux-6.1.9/drivers/net/ethernet/marvell/prestera/
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 …]
/linux-6.1.9/include/uapi/linux/
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()
/linux-6.1.9/arch/x86/kernel/cpu/mtrr/
Dgeneric.c315 get_mtrr_var_range(unsigned int index, struct mtrr_var_range *vr) in get_mtrr_var_range() argument
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()
331 vr[index].mask_lo = mask_lo; in fill_mtrr_var_range()
332 vr[index].mask_hi = mask_hi; in fill_mtrr_var_range()
657 static bool set_mtrr_var_ranges(unsigned int index, struct mtrr_var_range *vr) in set_mtrr_var_ranges() argument
[all …]
/linux-6.1.9/drivers/staging/media/deprecated/fsl-viu/
Dfsl-viu.c126 struct viu_reg __iomem *vr; member
242 struct viu_reg __iomem *vr = dev->vr; in viu_start_dma() local
247 iowrite32be(SOFT_RST, &vr->status_cfg); in viu_start_dma()
248 iowrite32be(INT_FIELD_EN, &vr->status_cfg); in viu_start_dma()
253 struct viu_reg __iomem *vr = dev->vr; in viu_stop_dma() local
257 iowrite32be(0, &vr->status_cfg); in viu_stop_dma()
260 status_cfg = ioread32be(&vr->status_cfg); in viu_stop_dma()
262 iowrite32be(status_cfg & 0x3f0000, &vr->status_cfg); in viu_stop_dma()
266 status_cfg = ioread32be(&vr->status_cfg); in viu_stop_dma()
273 iowrite32be(SOFT_RST, &vr->status_cfg); in viu_stop_dma()
[all …]
/linux-6.1.9/arch/mips/boot/dts/brcm/
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";
/linux-6.1.9/net/llc/
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 …]
/linux-6.1.9/net/rose/
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()
Drose_out.c37 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-6.1.9/arch/openrisc/kernel/
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()
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-6.1.9/net/x25/
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()
Dx25_out.c126 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-6.1.9/arch/csky/kernel/
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()
/linux-6.1.9/net/ax25/
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()
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()
/linux-6.1.9/net/netrom/
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()
Dnr_out.c87 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-6.1.9/drivers/infiniband/hw/cxgb4/
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 …]
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 …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c484 struct mlxsw_sp_vr *vr; member
503 struct mlxsw_sp_vr *vr, in mlxsw_sp_fib_create() argument
519 fib->vr = vr; in mlxsw_sp_fib_create()
739 static bool mlxsw_sp_vr_is_used(const struct mlxsw_sp_vr *vr) in mlxsw_sp_vr_is_used() argument
741 return !!vr->fib4 || !!vr->fib6 || in mlxsw_sp_vr_is_used()
742 !!vr->mr_table[MLXSW_SP_L3_PROTO_IPV4] || in mlxsw_sp_vr_is_used()
743 !!vr->mr_table[MLXSW_SP_L3_PROTO_IPV6]; in mlxsw_sp_vr_is_used()
748 struct mlxsw_sp_vr *vr; in mlxsw_sp_vr_find_unused() local
752 vr = &mlxsw_sp->router->vrs[i]; in mlxsw_sp_vr_find_unused()
753 if (!mlxsw_sp_vr_is_used(vr)) in mlxsw_sp_vr_find_unused()
[all …]
/linux-6.1.9/net/lapb/
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()
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()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
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()
/linux-6.1.9/drivers/platform/mellanox/
Dmlxbf-tmfifo.c290 const struct vring *vr = virtqueue_get_vring(vring->vq); in mlxbf_tmfifo_get_next_desc() local
294 if (vring->next_avail == virtio16_to_cpu(vdev, vr->avail->idx)) in mlxbf_tmfifo_get_next_desc()
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()
314 const struct vring *vr = virtqueue_get_vring(vring->vq); in mlxbf_tmfifo_release_desc() local
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()
[all …]
/linux-6.1.9/arch/powerpc/include/asm/
Dspu.h457 #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-6.1.9/arch/s390/include/asm/
Dvx-insn.h247 .macro VGBM vr imm2
248 VX_NUM v1, \vr
344 .macro VLGV gr, vr, disp, base="%r0", m
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
[all …]

1234