/drivers/vhost/ |
D | scsi.c | 241 static void vhost_scsi_init_inflight(struct vhost_scsi *vs, in vhost_scsi_init_inflight() argument 249 vq = &vs->vqs[i].vq; in vhost_scsi_init_inflight() 254 idx = vs->vqs[i].inflight_idx; in vhost_scsi_init_inflight() 256 old_inflight[i] = &vs->vqs[i].inflights[idx]; in vhost_scsi_init_inflight() 259 vs->vqs[i].inflight_idx = idx ^ 1; in vhost_scsi_init_inflight() 260 new_inflight = &vs->vqs[i].inflights[idx ^ 1]; in vhost_scsi_init_inflight() 368 struct vhost_scsi *vs = cmd->tvc_vhost; in vhost_scsi_release_cmd() local 370 llist_add(&cmd->tvc_completion_list, &vs->vs_completion_list); in vhost_scsi_release_cmd() 371 vhost_work_queue(&vs->dev, &vs->vs_completion_work); in vhost_scsi_release_cmd() 423 static void vhost_scsi_free_evt(struct vhost_scsi *vs, struct vhost_scsi_evt *evt) in vhost_scsi_free_evt() argument [all …]
|
/drivers/hwmon/pmbus/ |
D | ibm-cffps.c | 487 enum versions vs = cffps_unknown; in ibm_cffps_probe() local 495 vs = (enum versions)md; in ibm_cffps_probe() 499 vs = (enum versions)id->driver_data; in ibm_cffps_probe() 502 if (vs == cffps_unknown) { in ibm_cffps_probe() 515 vs = cffps1; in ibm_cffps_probe() 518 vs = cffps2; in ibm_cffps_probe() 522 vs = cffps1; in ibm_cffps_probe() 524 vs = cffps2; in ibm_cffps_probe() 529 snprintf(client->name, I2C_NAME_SIZE, "cffps%d", vs + 1); in ibm_cffps_probe() 533 rc = pmbus_do_probe(client, &ibm_cffps_info[vs]); in ibm_cffps_probe() [all …]
|
/drivers/net/vxlan/ |
D | vxlan_core.c | 93 static inline bool vxlan_collect_metadata(struct vxlan_sock *vs) in vxlan_collect_metadata() argument 95 return vs->flags & VXLAN_F_COLLECT_METADATA || in vxlan_collect_metadata() 164 static inline struct hlist_head *vni_head(struct vxlan_sock *vs, __be32 vni) in vni_head() argument 166 return &vs->vni_list[hash_32((__force u32)vni, VNI_HASH_BITS)]; in vni_head() 201 struct vxlan_sock *vs; in vxlan_find_sock() local 205 hlist_for_each_entry_rcu(vs, vs_head(net, port), hlist) { in vxlan_find_sock() 206 if (inet_sk(vs->sock->sk)->inet_sport == port && in vxlan_find_sock() 207 vxlan_get_sk_family(vs) == family && in vxlan_find_sock() 208 vs->flags == flags && in vxlan_find_sock() 209 vs->sock->sk->sk_bound_dev_if == ifindex) in vxlan_find_sock() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
D | nv40.c | 162 int ret, vs; in nv40_instmem_oneinit() local 168 vs = hweight8((nvkm_rd32(device, 0x001540) & 0x0000ff00) >> 8); in nv40_instmem_oneinit() 169 if (device->chipset == 0x40) imem->base.reserved = 0x6aa0 * vs; in nv40_instmem_oneinit() 170 else if (device->chipset < 0x43) imem->base.reserved = 0x4f00 * vs; in nv40_instmem_oneinit() 171 else if (nv44_gr_class(device)) imem->base.reserved = 0x4980 * vs; in nv40_instmem_oneinit() 172 else imem->base.reserved = 0x4a40 * vs; in nv40_instmem_oneinit()
|
/drivers/video/fbdev/omap/ |
D | sossi.c | 385 int hs, vs; in sossi_setup_tearsync() local 392 vs = ps_to_sossi_ticks(vs_pulse_time, div); in sossi_setup_tearsync() 393 if (vs < 8 || vs <= hs || vs >= (1 << 12)) in sossi_setup_tearsync() 395 vs /= 8; in sossi_setup_tearsync() 396 vs--; in sossi_setup_tearsync() 404 hs, vs, hs_pol_inv, vs_pol_inv); in sossi_setup_tearsync() 409 l |= vs << 3; in sossi_setup_tearsync()
|
D | hwa742.c | 794 int hs, vs; in setup_tearsync() local 852 vs = vndp; in setup_tearsync() 860 vs = vsw; in setup_tearsync() 870 vs = vs * (hdisp + hndp) * 1000000 / (pix_clk / 1000); /* ps */ in setup_tearsync() 871 vs *= 1000; in setup_tearsync() 873 if (vs <= hs) in setup_tearsync() 876 vs = hs * 12 / 10; in setup_tearsync() 893 hs, vs, (b & 0x3), !use_hsvs); in setup_tearsync() 895 return hwa742.extif->setup_tearsync(1, hs, vs, in setup_tearsync()
|
/drivers/isdn/mISDN/ |
D | layer2.c | 375 p1 = (l2->vs - l2->va) % 128; in cansend() 377 p1 = (l2->vs - l2->va) % 8; in cansend() 586 return ((nr - l2->va) % 128) <= ((l2->vs - l2->va) % 128); in legalnr() 588 return ((nr - l2->va) % 8) <= ((l2->vs - l2->va) % 8); in legalnr() 912 l2->vs = 0; in l2_start_multi() 955 if (l2->vs != l2->va) { in l2_restart_multi() 961 l2->vs = 0; in l2_restart_multi() 1013 } else if (l2->vs != l2->va) { in l2_connected() 1019 l2->vs = 0; in l2_connected() 1159 if (l2->vs != nr) { in invoke_retransmission() [all …]
|
D | layer2.h | 54 u_int vs, va, vr; member
|
/drivers/net/ |
D | veth.c | 54 struct veth_stats vs; member 187 const void *stats_base = (void *)&rq_stats->vs; in veth_get_ethtool_stats() 207 const void *base = (void *)&rq_stats->vs; in veth_get_ethtool_stats() 392 peer_tq_xdp_xmit_err = stats->vs.peer_tq_xdp_xmit_err; in veth_stats_rx() 393 xdp_tx_err = stats->vs.xdp_tx_err; in veth_stats_rx() 394 packets = stats->vs.xdp_packets; in veth_stats_rx() 395 bytes = stats->vs.xdp_bytes; in veth_stats_rx() 396 drops = stats->vs.rx_drops; in veth_stats_rx() 519 rq->stats.vs.peer_tq_xdp_xmit += nxmit; in veth_xdp_xmit() 520 rq->stats.vs.peer_tq_xdp_xmit_err += n - nxmit; in veth_xdp_xmit() [all …]
|
/drivers/scsi/fnic/ |
D | fnic_main.c | 211 struct vnic_stats *vs; in fnic_get_stats() local 228 vs = fnic->stats; in fnic_get_stats() 229 stats->tx_frames = vs->tx.tx_unicast_frames_ok; in fnic_get_stats() 230 stats->tx_words = vs->tx.tx_unicast_bytes_ok / 4; in fnic_get_stats() 231 stats->rx_frames = vs->rx.rx_unicast_frames_ok; in fnic_get_stats() 232 stats->rx_words = vs->rx.rx_unicast_bytes_ok / 4; in fnic_get_stats() 233 stats->error_frames = vs->tx.tx_errors + vs->rx.rx_errors; in fnic_get_stats() 234 stats->dumped_frames = vs->tx.tx_drops + vs->rx.rx_drop; in fnic_get_stats() 235 stats->invalid_crc_count = vs->rx.rx_crc_errors; in fnic_get_stats()
|
/drivers/hwmon/ |
D | lm75.c | 106 struct regulator *vs; member 551 regulator_disable(lm75->vs); in lm75_disable_regulator() 588 data->vs = devm_regulator_get(dev, "vs"); in lm75_probe() 589 if (IS_ERR(data->vs)) in lm75_probe() 590 return PTR_ERR(data->vs); in lm75_probe() 607 err = regulator_enable(data->vs); in lm75_probe()
|
/drivers/video/fbdev/ |
D | asiliantfb.c | 181 unsigned vs = p->var.yres + p->var.lower_margin; in asiliant_set_timing() local 205 write_cr(0x10, (vs - 1) & 0xff); in asiliant_set_timing() 206 write_cr(0x32, ((vs - 1) >> 8) & 0xf); in asiliant_set_timing() 212 write_cr(0x15, (vs - 1) & 0xff); in asiliant_set_timing() 213 write_cr(0x33, ((vs - 1) >> 8) & 0xf); in asiliant_set_timing()
|
D | tdfxfb.c | 550 u32 vd, vs, ve, vt, vbs, vbe; in tdfxfb_set_par() local 588 vs = vd + (info->var.lower_margin << 1); in tdfxfb_set_par() 589 ve = vs + (info->var.vsync_len << 1); in tdfxfb_set_par() 596 vs = vd + info->var.lower_margin; in tdfxfb_set_par() 597 ve = vs + info->var.vsync_len; in tdfxfb_set_par() 648 reg.crt[0x07] = ((vs & 0x200) >> 2) | in tdfxfb_set_par() 652 ((vs & 0x100) >> 6) | in tdfxfb_set_par() 656 reg.crt[0x10] = vs; in tdfxfb_set_par()
|
D | acornfb.c | 415 unsigned long hs, vs; in acornfb_validate_timing() local 427 vs = hs / in acornfb_validate_timing() 430 return (vs >= monspecs->vfmin && vs <= monspecs->vfmax && in acornfb_validate_timing()
|
D | amifb.c | 2056 u_short hs, vs, ve; in ami_set_sprite() local 2074 vs = par->diwstrt_v + (my << par->line_shift); in ami_set_sprite() 2075 ve = vs + (par->crsr.height << par->line_shift); in ami_set_sprite() 2078 lofsprite[0] = spr2hw_pos(vs, hs); in ami_set_sprite() 2079 shfsprite[0] = spr2hw_pos(vs + 1, hs); in ami_set_sprite() 2080 if (mod2(vs)) { in ami_set_sprite() 2081 lofsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs, hs, ve); in ami_set_sprite() 2082 shfsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs + 1, hs, ve + 1); in ami_set_sprite() 2085 lofsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs, hs, ve + 1); in ami_set_sprite() 2086 shfsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs + 1, hs, ve); in ami_set_sprite() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | dp.c | 207 nvbios_dpcfg_match(struct nvkm_bios *bios, u16 outp, u8 pc, u8 vs, u8 pe, in nvbios_dpcfg_match() argument 216 idx = (pc * 10) + vsoff[vs] + pe; in nvbios_dpcfg_match() 225 if (nvbios_rd08(bios, data + 0x00) == vs && in nvbios_dpcfg_match()
|
/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | ctxnv40.c | 553 int vs, vs_nr, vs_len, vs_nr_b0, vs_nr_b1, b0_offset, b1_offset; in nv40_gr_construct_shader() local 587 for (vs = 0; vs < vs_nr; vs++, offset += vs_len) { in nv40_gr_construct_shader()
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_misc.c | 193 unsigned int vd, vs, ve, vt, lc; in matroxfb_vgaHWinit() local 269 vs = m->VSyncStart - 1; in matroxfb_vgaHWinit() 299 ((vs & 0xC00) >> 5) | in matroxfb_vgaHWinit() 313 ((vs & 0x100) >> 6) | in matroxfb_vgaHWinit() 318 ((vs & 0x200) >> 2); in matroxfb_vgaHWinit() 326 hw->CRTC[16] = vs /* & 0xFF */; in matroxfb_vgaHWinit()
|
D | matroxfb_base.c | 271 struct matrox_vsync *vs; in matroxfb_wait_for_sync() local 277 vs = &minfo->crtc1.vsync; in matroxfb_wait_for_sync() 283 vs = &minfo->crtc2.vsync; in matroxfb_wait_for_sync() 293 cnt = vs->cnt; in matroxfb_wait_for_sync() 294 ret = wait_event_interruptible_timeout(vs->wait, cnt != vs->cnt, HZ/10); in matroxfb_wait_for_sync()
|
/drivers/gpu/drm/bridge/cadence/ |
D | cdns-mhdp8546-core.c | 1007 char vs[8] = "0/0/0/0"; in cdns_mhdp_print_lt_status() local 1012 vs[i * 2] = '0' + phy_cfg->dp.voltage[i]; in cdns_mhdp_print_lt_status() 1016 vs[i * 2 - 1] = '\0'; in cdns_mhdp_print_lt_status() 1022 vs, pe); in cdns_mhdp_print_lt_status() 1925 u32 rate, vs, required_bandwidth, available_bandwidth; in cdns_mhdp_sst_enable() local 1939 vs = tu_size * required_bandwidth / available_bandwidth; in cdns_mhdp_sst_enable() 1940 vs /= 1000; in cdns_mhdp_sst_enable() 1942 if (vs == tu_size) in cdns_mhdp_sst_enable() 1943 vs = tu_size - 1; in cdns_mhdp_sst_enable() 1945 line_thresh1 = ((vs + 1) << 5) * 8 / bpp; in cdns_mhdp_sst_enable() [all …]
|
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | dp.h | 34 nvbios_dpcfg_match(struct nvkm_bios *, u16 outp, u8 pc, u8 vs, u8 pe,
|
/drivers/gpu/drm/tegra/ |
D | dp.c | 469 unsigned int lanes = link->lanes, *vs, *pe, *pc, i; in drm_dp_link_apply_training() local 480 vs = request->voltage_swing; in drm_dp_link_apply_training() 486 values[i] = DP_TRAIN_VOLTAGE_SWING_LEVEL(vs[i]) | in drm_dp_link_apply_training()
|
/drivers/net/phy/ |
D | sfp-bus.c | 115 size_t vs, ps; in sfp_lookup_quirk() local 117 vs = sfp_strlen(id->base.vendor_name, ARRAY_SIZE(id->base.vendor_name)); in sfp_lookup_quirk() 121 if (sfp_match(q->vendor, id->base.vendor_name, vs) && in sfp_lookup_quirk()
|
/drivers/video/fbdev/intelfb/ |
D | intelfbhw.c | 1050 u32 *vs, *vb, *vt, *hs, *hb, *ht, *ss, *pipe_conf; in intelfbhw_mode_to_hw() local 1066 vs = &hw->vsync_b; in intelfbhw_mode_to_hw() 1078 vs = &hw->vsync_a; in intelfbhw_mode_to_hw() 1244 *vs = (vsync_start << VSYNCSTART_SHIFT) | (vsync_end << VSYNCEND_SHIFT); in intelfbhw_mode_to_hw() 1282 const u32 *hs, *ht, *hb, *vs, *vt, *vb, *ss; in intelfbhw_program_mode() local 1310 vs = &hw->vsync_b; in intelfbhw_program_mode() 1334 vs = &hw->vsync_a; in intelfbhw_program_mode() 1424 OUTREG(vsync_reg, *vs); in intelfbhw_program_mode()
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_lif.c | 2421 struct ionic_lif_stats *vs; in ionic_get_vf_stats() local 2433 vs = &ionic->vfs[vf].stats; in ionic_get_vf_stats() 2435 vf_stats->rx_packets = le64_to_cpu(vs->rx_ucast_packets); in ionic_get_vf_stats() 2436 vf_stats->tx_packets = le64_to_cpu(vs->tx_ucast_packets); in ionic_get_vf_stats() 2437 vf_stats->rx_bytes = le64_to_cpu(vs->rx_ucast_bytes); in ionic_get_vf_stats() 2438 vf_stats->tx_bytes = le64_to_cpu(vs->tx_ucast_bytes); in ionic_get_vf_stats() 2439 vf_stats->broadcast = le64_to_cpu(vs->rx_bcast_packets); in ionic_get_vf_stats() 2440 vf_stats->multicast = le64_to_cpu(vs->rx_mcast_packets); in ionic_get_vf_stats() 2441 vf_stats->rx_dropped = le64_to_cpu(vs->rx_ucast_drop_packets) + in ionic_get_vf_stats() 2442 le64_to_cpu(vs->rx_mcast_drop_packets) + in ionic_get_vf_stats() [all …]
|