lf 832 drivers/char/lp.c char *lf = memchr(s, '\n', count); lf 833 drivers/char/lp.c if (lf) lf 834 drivers/char/lp.c canwrite = lf - s; lf 847 drivers/char/lp.c if (lf && canwrite <= 0) { lf 81 drivers/firewire/net.c #define fwnet_set_hdr_lf(lf) ((lf) << 30) lf 105 drivers/firewire/net.c unsigned lf, unsigned dg_size, unsigned fg_off, unsigned dgl) lf 107 drivers/firewire/net.c hdr->w0 = fwnet_set_hdr_lf(lf) lf 576 drivers/firewire/net.c unsigned lf; lf 590 drivers/firewire/net.c lf = fwnet_get_hdr_lf(&hdr); lf 591 drivers/firewire/net.c if (lf == RFC2374_HDR_UNFRAG) { lf 622 drivers/firewire/net.c if (lf == RFC2374_HDR_FIRSTFRAG) { lf 688 drivers/firewire/net.c if (lf == RFC2374_HDR_FIRSTFRAG) lf 858 drivers/firewire/net.c u16 lf; lf 861 drivers/firewire/net.c lf = fwnet_get_hdr_lf(&ptask->hdr); lf 862 drivers/firewire/net.c switch (lf) { lf 868 drivers/firewire/net.c ptask->outstanding_pkts, lf, ptask->hdr.w0, lf 37 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c int pd, lf, xd, vh, vr, vo, l3; lf 46 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c lf = ram->next->bios.ramcfg_11_01_40; lf 115 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[7] |= (lf & 0x01) << 3; lf 53 drivers/gpu/ipu-v3/ipu-dc.c #define WROD(lf) (0x18 | ((lf) << 1)) lf 988 drivers/infiniband/hw/hfi1/pcie.c u32 reg32, fs, lf; lf 1134 drivers/infiniband/hw/hfi1/pcie.c lf = 8; lf 1144 drivers/infiniband/hw/hfi1/pcie.c lf = 9; lf 1155 drivers/infiniband/hw/hfi1/pcie.c (lf << lf 276 drivers/media/i2c/tda7432.c u8 lf, lr, rf, rr; lf 283 drivers/media/i2c/tda7432.c lr = lf = TDA7432_ATTEN_0DB; lf 287 drivers/media/i2c/tda7432.c lr = lf = t->balance->val; lf 291 drivers/media/i2c/tda7432.c lr = lf = TDA7432_ATTEN_0DB; lf 294 drivers/media/i2c/tda7432.c lf |= TDA7432_MUTE; lf 300 drivers/media/i2c/tda7432.c tda7432_write(sd, TDA7432_LF, lf); lf 29 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu_block *block, int lf); lf 31 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu_block *block, int lf); lf 168 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int lf; lf 171 drivers/net/ethernet/marvell/octeontx2/af/rvu.c for (lf = 0; lf < block->lf.max; lf++) { lf 172 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (block->fn_map[lf] == pcifunc) { lf 175 drivers/net/ethernet/marvell/octeontx2/af/rvu.c return lf; lf 261 drivers/net/ethernet/marvell/octeontx2/af/rvu.c u16 lf, bool attach) lf 267 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (lf >= block->lf.max) { lf 270 drivers/net/ethernet/marvell/octeontx2/af/rvu.c __func__, lf, block->name, block->lf.max); lf 283 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->fn_map[lf] = attach ? pcifunc : 0; lf 403 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int rvu_lf_reset(struct rvu *rvu, struct rvu_block *block, int lf) lf 410 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_write64(rvu, block->addr, block->lfreset_reg, lf | BIT_ULL(12)); lf 445 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int lf; lf 447 drivers/net/ethernet/marvell/octeontx2/af/rvu.c for (lf = 0; lf < block->lf.max; lf++) { lf 449 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->lfcfg_reg | (lf << block->lfshift)); lf 454 drivers/net/ethernet/marvell/octeontx2/af/rvu.c __set_bit(lf, block->lf.bmap); lf 459 drivers/net/ethernet/marvell/octeontx2/af/rvu.c (cfg >> 8) & 0xFFFF, lf, true); lf 462 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_set_msix_offset(rvu, pfvf, block, lf); lf 614 drivers/net/ethernet/marvell/octeontx2/af/rvu.c kfree(block->lf.bmap); lf 658 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->lf.max = (cfg >> 16) & 0xFFF; lf 669 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = rvu_alloc_bitmap(&block->lf); lf 679 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->lf.max = cfg & 0xFFF; lf 690 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = rvu_alloc_bitmap(&block->lf); lf 700 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->lf.max = cfg & 0xFFFF; lf 712 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = rvu_alloc_bitmap(&block->lf); lf 721 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->lf.max = (cfg >> 56) & 0xFF; lf 733 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = rvu_alloc_bitmap(&block->lf); lf 743 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->lf.max = cfg & 0xFFFF; lf 755 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = rvu_alloc_bitmap(&block->lf); lf 765 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->lf.max = cfg & 0xFF; lf 777 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = rvu_alloc_bitmap(&block->lf); lf 801 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (!block->lf.bmap) lf 805 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->fn_map = devm_kcalloc(rvu->dev, block->lf.max, lf 950 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int slot, lf, num_lfs; lf 964 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_lookup_rsrc(rvu, block, pcifunc, slot); lf 965 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (lf < 0) /* This should never happen */ lf 970 drivers/net/ethernet/marvell/octeontx2/af/rvu.c (lf << block->lfshift), 0x00ULL); lf 974 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, lf, false); lf 977 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_free_rsrc(&block->lf, lf); lf 980 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_clear_msix_offset(rvu, pfvf, block, lf); lf 1003 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (!block->lf.bmap) lf 1039 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int slot, lf; lf 1051 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (!block->lf.bmap) lf 1056 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_alloc_rsrc(&block->lf); lf 1057 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (lf < 0) lf 1062 drivers/net/ethernet/marvell/octeontx2/af/rvu.c (lf << block->lfshift), cfg); lf 1064 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, lf, true); lf 1067 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_set_msix_offset(rvu, pfvf, block, lf); lf 1082 drivers/net/ethernet/marvell/octeontx2/af/rvu.c free_lfs = rvu_rsrc_free_count(&block->lf); lf 1095 drivers/net/ethernet/marvell/octeontx2/af/rvu.c free_lfs = rvu_rsrc_free_count(&block->lf); lf 1108 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (req->sso > block->lf.max) { lf 1111 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, req->sso, block->lf.max); lf 1115 drivers/net/ethernet/marvell/octeontx2/af/rvu.c free_lfs = rvu_rsrc_free_count(&block->lf); lf 1124 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (req->ssow > block->lf.max) { lf 1127 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, req->sso, block->lf.max); lf 1131 drivers/net/ethernet/marvell/octeontx2/af/rvu.c free_lfs = rvu_rsrc_free_count(&block->lf); lf 1139 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (req->timlfs > block->lf.max) { lf 1142 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, req->timlfs, block->lf.max); lf 1146 drivers/net/ethernet/marvell/octeontx2/af/rvu.c free_lfs = rvu_rsrc_free_count(&block->lf); lf 1154 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (req->cptlfs > block->lf.max) { lf 1157 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pcifunc, req->cptlfs, block->lf.max); lf 1161 drivers/net/ethernet/marvell/octeontx2/af/rvu.c free_lfs = rvu_rsrc_free_count(&block->lf); lf 1234 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int blkaddr, int lf) lf 1238 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (lf < 0) lf 1242 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (pfvf->msix_lfmap[vec] == MSIX_BLKLF(blkaddr, lf)) lf 1249 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu_block *block, int lf) lf 1255 drivers/net/ethernet/marvell/octeontx2/af/rvu.c (lf << block->lfshift)); lf 1266 drivers/net/ethernet/marvell/octeontx2/af/rvu.c (lf << block->lfshift), (cfg & ~0x7FFULL) | offset); lf 1270 drivers/net/ethernet/marvell/octeontx2/af/rvu.c pfvf->msix_lfmap[offset + vec] = MSIX_BLKLF(block->addr, lf); lf 1274 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct rvu_block *block, int lf) lf 1280 drivers/net/ethernet/marvell/octeontx2/af/rvu.c (lf << block->lfshift)); lf 1285 drivers/net/ethernet/marvell/octeontx2/af/rvu.c (lf << block->lfshift), cfg & ~0x7FFULL); lf 1287 drivers/net/ethernet/marvell/octeontx2/af/rvu.c offset = rvu_get_msix_offset(rvu, pfvf, block->addr, lf); lf 1303 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int lf, slot; lf 1310 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_NPA], pcifunc, 0); lf 1311 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rsp->npa_msixoff = rvu_get_msix_offset(rvu, pfvf, BLKADDR_NPA, lf); lf 1313 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_NIX0], pcifunc, 0); lf 1314 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rsp->nix_msixoff = rvu_get_msix_offset(rvu, pfvf, BLKADDR_NIX0, lf); lf 1318 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_SSO], pcifunc, slot); lf 1320 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_get_msix_offset(rvu, pfvf, BLKADDR_SSO, lf); lf 1325 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_SSOW], pcifunc, slot); lf 1327 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_get_msix_offset(rvu, pfvf, BLKADDR_SSOW, lf); lf 1332 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_TIM], pcifunc, slot); lf 1334 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_get_msix_offset(rvu, pfvf, BLKADDR_TIM, lf); lf 1339 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, &hw->block[BLKADDR_CPT0], pcifunc, slot); lf 1341 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_get_msix_offset(rvu, pfvf, BLKADDR_CPT0, lf); lf 1759 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int slot, lf, num_lfs; lf 1768 drivers/net/ethernet/marvell/octeontx2/af/rvu.c lf = rvu_get_lf(rvu, block, pcifunc, slot); lf 1769 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (lf < 0) lf 1774 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_nix_lf_teardown(rvu, pcifunc, block->addr, lf); lf 1776 drivers/net/ethernet/marvell/octeontx2/af/rvu.c rvu_npa_lf_teardown(rvu, pcifunc, lf); lf 1778 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = rvu_lf_reset(rvu, block, lf); lf 1781 drivers/net/ethernet/marvell/octeontx2/af/rvu.c block->addr, lf); lf 49 drivers/net/ethernet/marvell/octeontx2/af/rvu.h struct rsrc_bmap lf; lf 116 drivers/net/ethernet/marvell/octeontx2/af/rvu.h #define MSIX_BLKLF(blkaddr, lf) (((blkaddr) << 8) | ((lf) & 0xFF)) lf 316 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int rvu_lf_reset(struct rvu *rvu, struct rvu_block *block, int lf); lf 91 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c return block->lf.max; lf 536 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c inst.lf = nixlf; lf 89 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c inst.lf = npalf; lf 107 drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h u64 lf : 9; lf 113 drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h u64 lf : 9; lf 396 drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h u64 lf : 7; lf 402 drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h u64 lf : 7; lf 2466 drivers/net/wireless/ath/wil6210/txrx.c int lf = (vring->swtail + ctx->nr_frags) % vring->size; lf 2469 drivers/net/wireless/ath/wil6210/txrx.c _d = &vring->va[lf].tx.legacy; lf 2473 drivers/net/wireless/ath/wil6210/txrx.c new_swtail = (lf + 1) % vring->size; lf 139 drivers/staging/media/hantro/hantro_g1_vp8_dec.c const struct v4l2_vp8_loopfilter_header *lf = &hdr->lf_header; lf 145 drivers/staging/media/hantro/hantro_g1_vp8_dec.c hantro_reg_write(vpu, &vp8_dec_lf_level[0], lf->level); lf 148 drivers/staging/media/hantro/hantro_g1_vp8_dec.c u32 lf_level = clamp(lf->level + seg->lf_update[i], lf 159 drivers/staging/media/hantro/hantro_g1_vp8_dec.c reg = G1_REG_REF_PIC_FILT_SHARPNESS(lf->sharpness_level); lf 160 drivers/staging/media/hantro/hantro_g1_vp8_dec.c if (lf->flags & V4L2_VP8_LF_FILTER_TYPE_SIMPLE) lf 164 drivers/staging/media/hantro/hantro_g1_vp8_dec.c if (lf->flags & V4L2_VP8_LF_HEADER_ADJ_ENABLE) { lf 167 drivers/staging/media/hantro/hantro_g1_vp8_dec.c lf->mb_mode_delta[i]); lf 169 drivers/staging/media/hantro/hantro_g1_vp8_dec.c lf->ref_frm_delta[i]); lf 280 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c const struct v4l2_vp8_loopfilter_header *lf = &hdr->lf_header; lf 286 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c hantro_reg_write(vpu, &vp8_dec_lf_level[0], lf->level); lf 289 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c u32 lf_level = clamp(lf->level + seg->lf_update[i], lf 300 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c reg = VDPU_REG_REF_PIC_FILT_SHARPNESS(lf->sharpness_level); lf 301 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c if (lf->flags & V4L2_VP8_LF_FILTER_TYPE_SIMPLE) lf 305 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c if (lf->flags & V4L2_VP8_LF_HEADER_ADJ_ENABLE) { lf 308 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c lf->mb_mode_delta[i]); lf 310 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c lf->ref_frm_delta[i]); lf 2151 drivers/tty/vt/vt.c lf(vc); lf 2196 drivers/tty/vt/vt.c lf(vc); lf 2202 drivers/tty/vt/vt.c lf(vc); lf 2785 drivers/tty/vt/vt.c lf(vc); lf 2994 drivers/tty/vt/vt.c lf(vc); lf 893 drivers/usb/host/isp1362.h int lf = 0; lf 896 drivers/usb/host/isp1362.h if (!lf) lf 899 drivers/usb/host/isp1362.h lf = 1; lf 904 drivers/usb/host/isp1362.h lf = 0; lf 912 drivers/usb/host/isp1362.h if (lf) lf 218 drivers/usb/serial/console.c unsigned int lf; lf 220 drivers/usb/serial/console.c for (i = 0, lf = 0 ; i < count ; i++) { lf 222 drivers/usb/serial/console.c lf = 1; lf 231 drivers/usb/serial/console.c if (lf) { lf 19 fs/affs/symlink.c struct slink_front *lf; lf 31 fs/affs/symlink.c lf = (struct slink_front *)bh->b_data; lf 34 fs/affs/symlink.c if (strchr(lf->symname,':')) { /* Handle assign or volume name */ lf 42 fs/affs/symlink.c while (i < 1023 && lf->symname[j] != ':') lf 43 fs/affs/symlink.c link[i++] = lf->symname[j++]; lf 49 fs/affs/symlink.c while (i < 1023 && (c = lf->symname[j])) { lf 1378 fs/gfs2/dir.c struct gfs2_leaf *lf; lf 1391 fs/gfs2/dir.c lf = (struct gfs2_leaf *)bh->b_data; lf 1393 fs/gfs2/dir.c *depth = be16_to_cpu(lf->lf_depth); lf 1394 fs/gfs2/dir.c entries += be16_to_cpu(lf->lf_entries); lf 1396 fs/gfs2/dir.c lfn = be64_to_cpu(lf->lf_next); lf 1427 fs/gfs2/dir.c lf = (struct gfs2_leaf *)bh->b_data; lf 1428 fs/gfs2/dir.c lfn = be64_to_cpu(lf->lf_next); lf 1429 fs/gfs2/dir.c if (lf->lf_entries) { lf 1431 fs/gfs2/dir.c entries2 += be16_to_cpu(lf->lf_entries); lf 1449 fs/gfs2/dir.c be16_to_cpu(lf->lf_entries)); lf 67 fs/qnx6/dir.c struct qnx6_long_filename *lf; lf 79 fs/qnx6/dir.c lf = qnx6_longname(s, de, &page); lf 80 fs/qnx6/dir.c if (IS_ERR(lf)) { lf 85 fs/qnx6/dir.c lf_size = fs16_to_cpu(sbi, lf->lf_size); lf 88 fs/qnx6/dir.c pr_debug("file %s\n", lf->lf_fname); lf 97 fs/qnx6/dir.c qnx6_lfile_checksum(lf->lf_fname, lf_size)) lf 101 fs/qnx6/dir.c lf_size, lf->lf_fname, de_inode); lf 102 fs/qnx6/dir.c if (!dir_emit(ctx, lf->lf_fname, lf_size, de_inode, DT_UNKNOWN)) { lf 182 fs/qnx6/dir.c struct qnx6_long_filename *lf = qnx6_longname(s, de, &page); lf 184 fs/qnx6/dir.c if (IS_ERR(lf)) lf 187 fs/qnx6/dir.c thislen = fs16_to_cpu(sbi, lf->lf_size); lf 192 fs/qnx6/dir.c if (memcmp(name, lf->lf_fname, len) == 0) { lf 385 include/net/ax25.h void ax25_linkfail_register(struct ax25_linkfail *lf); lf 386 include/net/ax25.h void ax25_linkfail_release(struct ax25_linkfail *lf); lf 83 net/ax25/ax25_iface.c void ax25_linkfail_register(struct ax25_linkfail *lf) lf 86 net/ax25/ax25_iface.c hlist_add_head(&lf->lf_node, &ax25_linkfail_list); lf 92 net/ax25/ax25_iface.c void ax25_linkfail_release(struct ax25_linkfail *lf) lf 95 net/ax25/ax25_iface.c hlist_del_init(&lf->lf_node); lf 192 net/ax25/ax25_iface.c struct ax25_linkfail *lf; lf 195 net/ax25/ax25_iface.c hlist_for_each_entry(lf, &ax25_linkfail_list, lf_node) lf 196 net/ax25/ax25_iface.c lf->func(ax25, reason); lf 743 sound/soc/codecs/wm9713.c u32 lf:1; lf 781 sound/soc/codecs/wm9713.c pll_div->lf = 1; lf 784 sound/soc/codecs/wm9713.c pll_div->lf = 0; lf 833 sound/soc/codecs/wm9713.c reg = (pll_div.n << 12) | (pll_div.lf << 11) | lf 838 sound/soc/codecs/wm9713.c reg2 = (pll_div.n << 12) | (pll_div.lf << 11) | (1 << 10) | lf 1705 tools/perf/util/probe-finder.c struct line_finder *lf = data; lf 1708 tools/perf/util/probe-finder.c if ((strtailcmp(fname, lf->fname) != 0) || lf 1709 tools/perf/util/probe-finder.c (lf->lno_s > lineno || lf->lno_e < lineno)) lf 1712 tools/perf/util/probe-finder.c err = line_range_add_line(fname, lineno, lf->lr); lf 1720 tools/perf/util/probe-finder.c static int find_line_range_by_line(Dwarf_Die *sp_die, struct line_finder *lf) lf 1724 tools/perf/util/probe-finder.c ret = die_walk_lines(sp_die ?: &lf->cu_die, line_range_walk_cb, lf); lf 1728 tools/perf/util/probe-finder.c if (!intlist__empty(lf->lr->line_list)) lf 1729 tools/perf/util/probe-finder.c ret = lf->found = 1; lf 1733 tools/perf/util/probe-finder.c zfree(&lf->lr->path); lf 1755 tools/perf/util/probe-finder.c struct line_finder *lf = param->data; lf 1756 tools/perf/util/probe-finder.c struct line_range *lr = lf->lr; lf 1764 tools/perf/util/probe-finder.c lf->fname = dwarf_decl_file(sp_die); lf 1766 tools/perf/util/probe-finder.c pr_debug("fname: %s, lineno:%d\n", lf->fname, lr->offset); lf 1767 tools/perf/util/probe-finder.c lf->lno_s = lr->offset + lr->start; lf 1768 tools/perf/util/probe-finder.c if (lf->lno_s < 0) /* Overflow */ lf 1769 tools/perf/util/probe-finder.c lf->lno_s = INT_MAX; lf 1770 tools/perf/util/probe-finder.c lf->lno_e = lr->offset + lr->end; lf 1771 tools/perf/util/probe-finder.c if (lf->lno_e < 0) /* Overflow */ lf 1772 tools/perf/util/probe-finder.c lf->lno_e = INT_MAX; lf 1773 tools/perf/util/probe-finder.c pr_debug("New line range: %d to %d\n", lf->lno_s, lf->lno_e); lf 1774 tools/perf/util/probe-finder.c lr->start = lf->lno_s; lf 1775 tools/perf/util/probe-finder.c lr->end = lf->lno_e; lf 1778 tools/perf/util/probe-finder.c line_range_inline_cb, lf); lf 1780 tools/perf/util/probe-finder.c param->retval = find_line_range_by_line(sp_die, lf); lf 1786 tools/perf/util/probe-finder.c static int find_line_range_by_func(struct line_finder *lf) lf 1788 tools/perf/util/probe-finder.c struct dwarf_callback_param param = {.data = (void *)lf, .retval = 0}; lf 1789 tools/perf/util/probe-finder.c dwarf_getfuncs(&lf->cu_die, line_range_search_cb, ¶m, 0); lf 1795 tools/perf/util/probe-finder.c struct line_finder lf = {.lr = lr, .found = 0}; lf 1806 tools/perf/util/probe-finder.c .cu_die = &lf.cu_die, .sp_die = &lf.sp_die, .found = 0}; lf 1808 tools/perf/util/probe-finder.c .data = (void *)&lf, .retval = 0}; lf 1813 tools/perf/util/probe-finder.c line_range_search_cb(&lf.sp_die, &line_range_param); lf 1814 tools/perf/util/probe-finder.c if (lf.found) lf 1820 tools/perf/util/probe-finder.c while (!lf.found && ret >= 0) { lf 1826 tools/perf/util/probe-finder.c diep = dwarf_offdie(dbg->dbg, off + cuhl, &lf.cu_die); lf 1832 tools/perf/util/probe-finder.c lf.fname = cu_find_realpath(&lf.cu_die, lr->file); lf 1834 tools/perf/util/probe-finder.c lf.fname = 0; lf 1836 tools/perf/util/probe-finder.c if (!lr->file || lf.fname) { lf 1838 tools/perf/util/probe-finder.c ret = find_line_range_by_func(&lf); lf 1840 tools/perf/util/probe-finder.c lf.lno_s = lr->start; lf 1841 tools/perf/util/probe-finder.c lf.lno_e = lr->end; lf 1842 tools/perf/util/probe-finder.c ret = find_line_range_by_line(NULL, &lf); lf 1850 tools/perf/util/probe-finder.c if (lf.found) { lf 1851 tools/perf/util/probe-finder.c comp_dir = cu_get_comp_dir(&lf.cu_die); lf 1860 tools/perf/util/probe-finder.c return (ret < 0) ? ret : lf.found;