tok 782 arch/x86/kernel/cpu/resctrl/core.c char *tok; tok 786 arch/x86/kernel/cpu/resctrl/core.c while ((tok = strsep(&str, ",")) != NULL) { tok 787 arch/x86/kernel/cpu/resctrl/core.c force_off = *tok == '!'; tok 789 arch/x86/kernel/cpu/resctrl/core.c tok++; tok 791 arch/x86/kernel/cpu/resctrl/core.c if (strcmp(tok, o->name) == 0) { tok 350 arch/x86/kernel/cpu/resctrl/ctrlmondata.c static int rdtgroup_parse_resource(char *resname, char *tok, tok 357 arch/x86/kernel/cpu/resctrl/ctrlmondata.c return parse_line(tok, r, rdtgrp); tok 369 arch/x86/kernel/cpu/resctrl/ctrlmondata.c char *tok, *resname; tok 401 arch/x86/kernel/cpu/resctrl/ctrlmondata.c while ((tok = strsep(&buf, "\n")) != NULL) { tok 402 arch/x86/kernel/cpu/resctrl/ctrlmondata.c resname = strim(strsep(&tok, ":")); tok 403 arch/x86/kernel/cpu/resctrl/ctrlmondata.c if (!tok) { tok 408 arch/x86/kernel/cpu/resctrl/ctrlmondata.c if (tok[0] == '\0') { tok 413 arch/x86/kernel/cpu/resctrl/ctrlmondata.c ret = rdtgroup_parse_resource(resname, tok, rdtgrp); tok 1698 block/blk-cgroup.c int tok; tok 1725 block/blk-cgroup.c tok = io_schedule_prepare(); tok 1731 block/blk-cgroup.c io_schedule_finish(tok); tok 2238 block/blk-iocost.c int tok; tok 2260 block/blk-iocost.c tok = match_token(p, qos_tokens, args); tok 2261 block/blk-iocost.c switch (tok) { tok 2271 block/blk-iocost.c qos[tok] = v * 100; tok 2277 block/blk-iocost.c qos[tok] = v; tok 2288 block/blk-iocost.c qos[tok] = clamp_t(s64, v * 100, tok 2403 block/blk-iocost.c int tok; tok 2426 block/blk-iocost.c tok = match_token(p, i_lcoef_tokens, args); tok 2427 block/blk-iocost.c if (tok == NR_I_LCOEFS) tok 2431 block/blk-iocost.c u[tok] = v; tok 794 block/blk-iolatency.c char *p, *tok; tok 808 block/blk-iolatency.c while ((tok = strsep(&p, " "))) { tok 812 block/blk-iolatency.c if (sscanf(tok, "%15[^=]=%20s", key, val) != 2) tok 1611 block/blk-throttle.c char tok[27]; /* wiops=18446744073709551616 */ tok 1616 block/blk-throttle.c if (sscanf(ctx.body, "%26s%n", tok, &len) != 1) tok 1618 block/blk-throttle.c if (tok[0] == '\0') tok 1623 block/blk-throttle.c p = tok; tok 1633 block/blk-throttle.c if (!strcmp(tok, "rbps")) tok 1635 block/blk-throttle.c else if (!strcmp(tok, "wbps")) tok 1637 block/blk-throttle.c else if (!strcmp(tok, "riops")) tok 1639 block/blk-throttle.c else if (!strcmp(tok, "wiops")) tok 1641 block/blk-throttle.c else if (off == LIMIT_LOW && !strcmp(tok, "idle")) tok 1643 block/blk-throttle.c else if (off == LIMIT_LOW && !strcmp(tok, "latency")) tok 549 block/sed-opal.c static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) tok 554 block/sed-opal.c cmd->cmd[cmd->pos++] = tok; tok 732 block/sed-opal.c const struct opal_resp_tok *tok; tok 745 block/sed-opal.c tok = &resp->toks[n]; tok 746 block/sed-opal.c if (tok->len == 0) { tok 751 block/sed-opal.c return tok; tok 754 block/sed-opal.c static ssize_t response_parse_tiny(struct opal_resp_tok *tok, tok 757 block/sed-opal.c tok->pos = pos; tok 758 block/sed-opal.c tok->len = 1; tok 759 block/sed-opal.c tok->width = OPAL_WIDTH_TINY; tok 762 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_SINT; tok 764 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_UINT; tok 765 block/sed-opal.c tok->stored.u = pos[0] & 0x3f; tok 768 block/sed-opal.c return tok->len; tok 771 block/sed-opal.c static ssize_t response_parse_short(struct opal_resp_tok *tok, tok 774 block/sed-opal.c tok->pos = pos; tok 775 block/sed-opal.c tok->len = (pos[0] & SHORT_ATOM_LEN_MASK) + 1; tok 776 block/sed-opal.c tok->width = OPAL_WIDTH_SHORT; tok 779 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_BYTESTRING; tok 781 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_SINT; tok 786 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_UINT; tok 787 block/sed-opal.c if (tok->len > 9) { tok 791 block/sed-opal.c for (i = tok->len - 1; i > 0; i--) { tok 795 block/sed-opal.c tok->stored.u = u_integer; tok 798 block/sed-opal.c return tok->len; tok 801 block/sed-opal.c static ssize_t response_parse_medium(struct opal_resp_tok *tok, tok 804 block/sed-opal.c tok->pos = pos; tok 805 block/sed-opal.c tok->len = (((pos[0] & MEDIUM_ATOM_LEN_MASK) << 8) | pos[1]) + 2; tok 806 block/sed-opal.c tok->width = OPAL_WIDTH_MEDIUM; tok 809 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_BYTESTRING; tok 811 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_SINT; tok 813 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_UINT; tok 815 block/sed-opal.c return tok->len; tok 818 block/sed-opal.c static ssize_t response_parse_long(struct opal_resp_tok *tok, tok 821 block/sed-opal.c tok->pos = pos; tok 822 block/sed-opal.c tok->len = ((pos[1] << 16) | (pos[2] << 8) | pos[3]) + 4; tok 823 block/sed-opal.c tok->width = OPAL_WIDTH_LONG; tok 826 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_BYTESTRING; tok 828 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_SINT; tok 830 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_UINT; tok 832 block/sed-opal.c return tok->len; tok 835 block/sed-opal.c static ssize_t response_parse_token(struct opal_resp_tok *tok, tok 838 block/sed-opal.c tok->pos = pos; tok 839 block/sed-opal.c tok->len = 1; tok 840 block/sed-opal.c tok->type = OPAL_DTA_TOKENID_TOKEN; tok 841 block/sed-opal.c tok->width = OPAL_WIDTH_TOKEN; tok 843 block/sed-opal.c return tok->len; tok 917 block/sed-opal.c const struct opal_resp_tok *tok; tok 920 block/sed-opal.c tok = response_get_token(resp, n); tok 921 block/sed-opal.c if (IS_ERR(tok)) tok 924 block/sed-opal.c if (tok->type != OPAL_DTA_TOKENID_BYTESTRING) { tok 929 block/sed-opal.c switch (tok->width) { tok 945 block/sed-opal.c *store = tok->pos + skip; tok 947 block/sed-opal.c return tok->len - skip; tok 952 block/sed-opal.c const struct opal_resp_tok *tok; tok 954 block/sed-opal.c tok = response_get_token(resp, n); tok 955 block/sed-opal.c if (IS_ERR(tok)) tok 958 block/sed-opal.c if (tok->type != OPAL_DTA_TOKENID_UINT) { tok 959 block/sed-opal.c pr_debug("Token is not unsigned int: %d\n", tok->type); tok 963 block/sed-opal.c if (tok->width != OPAL_WIDTH_TINY && tok->width != OPAL_WIDTH_SHORT) { tok 964 block/sed-opal.c pr_debug("Atom is not short or tiny: %d\n", tok->width); tok 968 block/sed-opal.c return tok->stored.u; tok 982 block/sed-opal.c const struct opal_resp_tok *tok; tok 984 block/sed-opal.c tok = response_get_token(resp, 0); tok 985 block/sed-opal.c if (response_token_matches(tok, OPAL_ENDOFSESSION)) tok 991 block/sed-opal.c tok = response_get_token(resp, resp->num - 5); tok 992 block/sed-opal.c if (!response_token_matches(tok, OPAL_STARTLIST)) tok 995 block/sed-opal.c tok = response_get_token(resp, resp->num - 1); tok 996 block/sed-opal.c if (!response_token_matches(tok, OPAL_ENDLIST)) tok 49 drivers/dma-buf/selftest.c char *filter, *sep, *tok; tok 53 drivers/dma-buf/selftest.c for (sep = filter; (tok = strsep(&sep, ","));) { tok 57 drivers/dma-buf/selftest.c if (*tok == '!') { tok 59 drivers/dma-buf/selftest.c tok++; tok 62 drivers/dma-buf/selftest.c if (*tok == '\0') tok 65 drivers/dma-buf/selftest.c sl = strchr(tok, '/'); tok 68 drivers/dma-buf/selftest.c if (strcmp(tok, caller)) { tok 73 drivers/dma-buf/selftest.c tok = sl; tok 76 drivers/dma-buf/selftest.c if (strcmp(tok, name)) { tok 498 drivers/firmware/qemu_fw_cfg.c char *name_copy, *p, *tok; tok 509 drivers/firmware/qemu_fw_cfg.c while ((tok = strsep(&p, "/")) && *tok) { tok 513 drivers/firmware/qemu_fw_cfg.c ret = sysfs_create_link(&dir->kobj, target, tok); tok 518 drivers/firmware/qemu_fw_cfg.c ko = kset_find_obj(dir, tok); tok 540 drivers/firmware/qemu_fw_cfg.c ret = kobject_set_name(&subdir->kobj, "%s", tok); tok 895 drivers/gpu/drm/i915/i915_pci.c char *s, *p, *tok; tok 916 drivers/gpu/drm/i915/i915_pci.c for (p = s, ret = false; (tok = strsep(&p, ",")) != NULL; ) { tok 919 drivers/gpu/drm/i915/i915_pci.c if (kstrtou16(tok, 16, &val) == 0 && val == device_id) { tok 204 drivers/gpu/drm/i915/selftests/i915_selftest.c char *filter, *sep, *tok; tok 208 drivers/gpu/drm/i915/selftests/i915_selftest.c for (sep = filter; (tok = strsep(&sep, ","));) { tok 212 drivers/gpu/drm/i915/selftests/i915_selftest.c if (*tok == '!') { tok 214 drivers/gpu/drm/i915/selftests/i915_selftest.c tok++; tok 217 drivers/gpu/drm/i915/selftests/i915_selftest.c if (*tok == '\0') tok 220 drivers/gpu/drm/i915/selftests/i915_selftest.c sl = strchr(tok, '/'); tok 223 drivers/gpu/drm/i915/selftests/i915_selftest.c if (strcmp(tok, caller)) { tok 228 drivers/gpu/drm/i915/selftests/i915_selftest.c tok = sl; tok 231 drivers/gpu/drm/i915/selftests/i915_selftest.c if (strcmp(tok, name)) { tok 54 drivers/isdn/mISDN/dsp_hwec.c char *dup, *tok, *name, *val; tok 61 drivers/isdn/mISDN/dsp_hwec.c while ((tok = strsep(&dup, ","))) { tok 62 drivers/isdn/mISDN/dsp_hwec.c if (!strlen(tok)) tok 64 drivers/isdn/mISDN/dsp_hwec.c name = strsep(&tok, "="); tok 65 drivers/isdn/mISDN/dsp_hwec.c val = tok; tok 222 drivers/isdn/mISDN/dsp_pipeline.c char *dup, *tok, *name, *args; tok 236 drivers/isdn/mISDN/dsp_pipeline.c while ((tok = strsep(&dup, "|"))) { tok 237 drivers/isdn/mISDN/dsp_pipeline.c if (!strlen(tok)) tok 239 drivers/isdn/mISDN/dsp_pipeline.c name = strsep(&tok, "("); tok 240 drivers/isdn/mISDN/dsp_pipeline.c args = strsep(&tok, ")"); tok 686 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c char tok[256]; tok 688 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c memcpy(tok, s, len); tok 689 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c tok[len] = 0; tok 690 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c return kstrtouint(strim(tok), base, val); tok 695 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c char tok[256]; tok 697 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c memcpy(tok, s, len); tok 698 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c tok[len] = 0; tok 699 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c return kstrtou16(strim(tok), base, val); tok 198 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c int tgt, int act, int tok, u64 offset, size_t size, int width) tok 231 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c newcfg |= NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress(tok); tok 245 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c newcfg |= NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress(tok); tok 295 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c int tgt, int act, int tok, u64 offset, size_t size, int width) tok 302 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c tgt, act, tok, offset, size, width); tok 312 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c static int matching_bar(struct nfp_bar *bar, u32 tgt, u32 act, u32 tok, tok 361 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c (bartok < 0 || bartok == tok) && tok 373 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) tok 380 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c if (matching_bar(bar, tgt, act, tok, offset, size, width)) tok 390 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c int tgt, int act, int tok, tok 404 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c tgt, act, tok, offset, size, width); tok 415 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c tgt, act, tok, offset, size, width)) tok 423 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c int tgt, int act, int tok, tok 431 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c n = find_unused_bar_noblock(nfp, tgt, act, tok, offset, size, width); tok 453 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) tok 456 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c (*barnum = find_unused_bar_and_lock(nfp, tgt, act, tok, tok 463 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c u32 tgt, u32 act, u32 tok, tok 473 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c barnum = find_matching_bar(nfp, tgt, act, tok, offset, size, width); tok 481 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c barnum = find_unused_bar_noblock(nfp, tgt, act, tok, tok 492 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c retval = nfp_wait_for_bar(nfp, &barnum, tgt, act, tok, tok 501 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c tgt, act, tok, offset, size, width); tok 499 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c bool tok; tok 505 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c tok = val & (1 << 15); tok 533 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c if (tok) tok 145 drivers/parisc/lba_pci.c #define LBA_CFG_BUS(tok) ((u8) ((tok)>>16)) tok 146 drivers/parisc/lba_pci.c #define LBA_CFG_DEV(tok) ((u8) ((tok)>>11) & 0x1f) tok 147 drivers/parisc/lba_pci.c #define LBA_CFG_FUNC(tok) ((u8) ((tok)>>8 ) & 0x7) tok 205 drivers/parisc/lba_pci.c #define LBA_CFG_SETUP(d, tok) { \ tok 232 drivers/parisc/lba_pci.c #define LBA_CFG_PROBE(d, tok) { \ tok 237 drivers/parisc/lba_pci.c WRITE_REG32(tok | PCI_VENDOR_ID, (d)->hba.base_addr + LBA_PCI_CFG_ADDR);\ tok 283 drivers/parisc/lba_pci.c #define LBA_CFG_MASTER_ABORT_CHECK(d, base, tok, error) { \ tok 337 drivers/parisc/lba_pci.c lba_rd_cfg(struct lba_device *d, u32 tok, u8 reg, u32 size) tok 345 drivers/parisc/lba_pci.c LBA_CFG_SETUP(d, tok); tok 346 drivers/parisc/lba_pci.c LBA_CFG_PROBE(d, tok); tok 347 drivers/parisc/lba_pci.c LBA_CFG_MASTER_ABORT_CHECK(d, d->hba.base_addr, tok, error); tok 351 drivers/parisc/lba_pci.c LBA_CFG_ADDR_SETUP(d, tok | reg); tok 367 drivers/parisc/lba_pci.c u32 tok = LBA_CFG_TOK(local_bus, devfn); tok 377 drivers/parisc/lba_pci.c *data = lba_rd_cfg(d, tok, pos, size); tok 378 drivers/parisc/lba_pci.c DBG_CFG("%s(%x+%2x) -> 0x%x (a)\n", __func__, tok, pos, *data); tok 383 drivers/parisc/lba_pci.c DBG_CFG("%s(%x+%2x) -> -1 (b)\n", __func__, tok, pos); tok 393 drivers/parisc/lba_pci.c LBA_CFG_ADDR_SETUP(d, tok | pos); tok 399 drivers/parisc/lba_pci.c DBG_CFG("%s(%x+%2x) -> 0x%x (c)\n", __func__, tok, pos, *data); tok 405 drivers/parisc/lba_pci.c lba_wr_cfg(struct lba_device *d, u32 tok, u8 reg, u32 data, u32 size) tok 413 drivers/parisc/lba_pci.c LBA_CFG_SETUP(d, tok); tok 414 drivers/parisc/lba_pci.c LBA_CFG_ADDR_SETUP(d, tok | reg); tok 420 drivers/parisc/lba_pci.c LBA_CFG_MASTER_ABORT_CHECK(d, d->hba.base_addr, tok, error); tok 434 drivers/parisc/lba_pci.c u32 tok = LBA_CFG_TOK(local_bus,devfn); tok 441 drivers/parisc/lba_pci.c lba_wr_cfg(d, tok, pos, (u32) data, size); tok 442 drivers/parisc/lba_pci.c DBG_CFG("%s(%x+%2x) = 0x%x (a)\n", __func__, tok, pos,data); tok 447 drivers/parisc/lba_pci.c DBG_CFG("%s(%x+%2x) = 0x%x (b)\n", __func__, tok, pos,data); tok 451 drivers/parisc/lba_pci.c DBG_CFG("%s(%x+%2x) = 0x%x (c)\n", __func__, tok, pos, data); tok 454 drivers/parisc/lba_pci.c LBA_CFG_ADDR_SETUP(d, tok | pos); tok 484 drivers/parisc/lba_pci.c u32 tok = LBA_CFG_TOK(local_bus, devfn); tok 490 drivers/parisc/lba_pci.c LBA_CFG_TR4_ADDR_SETUP(d, tok | pos); tok 503 drivers/parisc/lba_pci.c DBG_CFG("mercury_cfg_read(%x+%2x) -> 0x%x\n", tok, pos, *data); tok 517 drivers/parisc/lba_pci.c u32 tok = LBA_CFG_TOK(local_bus,devfn); tok 522 drivers/parisc/lba_pci.c DBG_CFG("%s(%x+%2x) <- 0x%x (c)\n", __func__, tok, pos, data); tok 524 drivers/parisc/lba_pci.c LBA_CFG_TR4_ADDR_SETUP(d, tok | pos); tok 136 drivers/s390/block/dasd_devmap.c char *tok; tok 161 drivers/s390/block/dasd_devmap.c tok = strsep(&str, "."); tok 162 drivers/s390/block/dasd_devmap.c if (kstrtouint(tok, 16, &val) || val > 0xff) tok 166 drivers/s390/block/dasd_devmap.c tok = strsep(&str, "."); tok 167 drivers/s390/block/dasd_devmap.c if (kstrtouint(tok, 16, &val) || val > 0xff) tok 171 drivers/s390/block/dasd_devmap.c tok = strsep(&str, "."); tok 172 drivers/s390/block/dasd_devmap.c if (kstrtouint(tok, 16, &val) || val > 0xffff) tok 308 drivers/s390/crypto/zcrypt_ccamisc.c u8 tok[0]; tok 396 drivers/s390/crypto/zcrypt_ccamisc.c prepparm->lv3.keyblock.tok, 8*keysize); tok 403 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(seckey, prepparm->lv3.keyblock.tok, SECKEYBLOBSIZE); tok 448 drivers/s390/crypto/zcrypt_ccamisc.c u8 tok[0]; tok 533 drivers/s390/crypto/zcrypt_ccamisc.c prepparm->lv3.keyblock.tok, 8*keysize); tok 541 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(seckey, prepparm->lv3.keyblock.tok, SECKEYBLOBSIZE); tok 355 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h #define h_reg_crq(ua, tok, sz) \ tok 356 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h plpar_hcall_norets(H_REG_CRQ, ua, tok, sz) tok 670 drivers/soc/fsl/dpio/qbman-portal.c p->tok = QMAN_DQ_TOKEN_VALID; tok 817 drivers/soc/fsl/dpio/qbman-portal.c if (dq->dq.tok != QMAN_DQ_TOKEN_VALID) tok 825 drivers/soc/fsl/dpio/qbman-portal.c ((struct dpaa2_dq *)dq)->dq.tok = 0; tok 33 drivers/soc/fsl/dpio/qbman-portal.h u8 tok; tok 88 drivers/staging/rtl8192u/r819xU_cmdpkt.c if (pstx_fb->tok) { tok 28 drivers/staging/rtl8192u/r819xU_cmdpkt.h u8 tok:1; /* Transmit ok. */ tok 149 drivers/usb/early/ehci-dbgp.c static inline u32 dbgp_pid_write_update(u32 x, u32 tok) tok 153 drivers/usb/early/ehci-dbgp.c return (x & 0xffff0000) | (data0 << 8) | (tok & 0xff); tok 156 drivers/usb/early/ehci-dbgp.c static inline u32 dbgp_pid_read_update(u32 x, u32 tok) tok 158 drivers/usb/early/ehci-dbgp.c return (x & 0xffff0000) | (USB_PID_DATA0 << 8) | (tok & 0xff); tok 293 drivers/usb/host/ehci.h #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) tok 295 drivers/usb/host/ehci.h #define QTD_CERR(tok) (((tok)>>10) & 0x3) tok 296 drivers/usb/host/ehci.h #define QTD_PID(tok) (((tok)>>8) & 0x3) tok 516 drivers/usb/host/ehci.h #define EHCI_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) tok 326 drivers/usb/host/fotg210.h #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) tok 328 drivers/usb/host/fotg210.h #define QTD_CERR(tok) (((tok)>>10) & 0x3) tok 329 drivers/usb/host/fotg210.h #define QTD_PID(tok) (((tok)>>8) & 0x3) tok 551 drivers/usb/host/fotg210.h #define FOTG210_ITD_LENGTH(tok) (((tok)>>16) & 0x0fff) tok 216 drivers/usb/host/oxu210hp-hcd.c #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) tok 239 drivers/usb/host/oxu210hp-hcd.c #define QTD_LENGTH(tok) (((tok)>>16) & 0x7fff) tok 241 drivers/usb/host/oxu210hp-hcd.c #define QTD_CERR(tok) (((tok)>>10) & 0x3) tok 242 drivers/usb/host/oxu210hp-hcd.c #define QTD_PID(tok) (((tok)>>8) & 0x3) tok 39 include/linux/usb/ehci-dbgp.h #define DBGP_PID_SET(data, tok) (((data)<<8)|(tok)) tok 4188 include/net/cfg80211.h const struct nl80211_wowlan_tcp_data_token_feature *tok; tok 43 include/net/smc.h u64 tok; tok 26 include/soc/fsl/dpaa2-global.h u8 tok; tok 252 include/soc/fsl/qman.h u8 tok; tok 3281 kernel/cgroup/cgroup.c char *tok; tok 3289 kernel/cgroup/cgroup.c while ((tok = strsep(&buf, " "))) { tok 3290 kernel/cgroup/cgroup.c if (tok[0] == '\0') tok 3294 kernel/cgroup/cgroup.c strcmp(tok + 1, ss->name)) tok 3297 kernel/cgroup/cgroup.c if (*tok == '+') { tok 3300 kernel/cgroup/cgroup.c } else if (*tok == '-') { tok 7816 kernel/sched/core.c char tok[21]; /* U64_MAX */ tok 7818 kernel/sched/core.c if (sscanf(buf, "%20s %llu", tok, periodp) < 1) tok 7823 kernel/sched/core.c if (sscanf(tok, "%llu", quotap)) tok 7825 kernel/sched/core.c else if (!strcmp(tok, "max")) tok 188 net/core/utils.c const char *s, *tok = NULL; tok 244 net/core/utils.c tok = s + 1; tok 249 net/core/utils.c ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); tok 1051 net/rxrpc/key.c u32 cnlen, toksize, ntoks, tok, zero; tok 1158 net/rxrpc/key.c tok = 0; tok 1160 net/rxrpc/key.c toksize = toksizes[tok++]; tok 1232 net/rxrpc/key.c ASSERTCMP(tok, ==, ntoks); tok 209 net/smc/smc_ism.c smc_smcd_terminate(wrk->smcd, wrk->event.tok, ev_info.vlan_id); tok 215 net/smc/smc_ism.c wrk->event.tok, tok 247 net/smc/smc_ism.c smc_smcd_terminate(wrk->smcd, wrk->event.tok, VLAN_VID_MASK); tok 1441 net/wireless/nl80211.c if (tcp->tok && nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, tok 1442 net/wireless/nl80211.c sizeof(*tcp->tok), tcp->tok)) tok 11383 net/wireless/nl80211.c struct nl80211_wowlan_tcp_data_token *tok = NULL; tok 11427 net/wireless/nl80211.c tok = nla_data(tb[NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN]); tok 11428 net/wireless/nl80211.c tokens_size = tokln - sizeof(*tok); tok 11430 net/wireless/nl80211.c if (!tok->len || tokens_size % tok->len) tok 11432 net/wireless/nl80211.c if (!rdev->wiphy.wowlan->tcp->tok) tok 11434 net/wireless/nl80211.c if (tok->len > rdev->wiphy.wowlan->tcp->tok->max_len) tok 11436 net/wireless/nl80211.c if (tok->len < rdev->wiphy.wowlan->tcp->tok->min_len) tok 11438 net/wireless/nl80211.c if (tokens_size > rdev->wiphy.wowlan->tcp->tok->bufsize) tok 11440 net/wireless/nl80211.c if (tok->offset + tok->len > data_size) tok 11511 net/wireless/nl80211.c if (tok) { tok 11513 net/wireless/nl80211.c memcpy(&cfg->payload_tok, tok, sizeof(*tok) + tokens_size); tok 206 scripts/kconfig/expr.h #define for_all_properties(sym, st, tok) \ tok 208 scripts/kconfig/expr.h if (st->type == (tok)) tok 771 scripts/kconfig/menu.c enum prop_type tok, const char *prefix) tok 776 scripts/kconfig/menu.c for_all_properties(sym, prop, tok) { tok 391 security/smack/smackfs.c char *tok[4]; tok 406 security/smack/smackfs.c tok[i] = data + cnt; tok 415 security/smack/smackfs.c tok[i++] = NULL; tok 417 security/smack/smackfs.c rc = smk_fill_rule(tok[0], tok[1], tok[2], tok[3], rule, import, 0); tok 1943 security/smack/smackfs.c char *tok; tok 1947 security/smack/smackfs.c while ((tok = strsep(&data, " ")) != NULL) { tok 1948 security/smack/smackfs.c if (!*tok) tok 1951 security/smack/smackfs.c skp = smk_import_entry(tok, 0); tok 983 tools/lib/traceevent/event-parse.c static int extend_token(char **tok, char *buf, int size) tok 985 tools/lib/traceevent/event-parse.c char *newtok = realloc(*tok, size); tok 988 tools/lib/traceevent/event-parse.c free(*tok); tok 989 tools/lib/traceevent/event-parse.c *tok = NULL; tok 993 tools/lib/traceevent/event-parse.c if (!*tok) tok 997 tools/lib/traceevent/event-parse.c *tok = newtok; tok 1002 tools/lib/traceevent/event-parse.c static enum tep_event_type force_token(const char *str, char **tok); tok 1004 tools/lib/traceevent/event-parse.c static enum tep_event_type __read_token(char **tok) tok 1012 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1028 tools/lib/traceevent/event-parse.c if (asprintf(tok, "%c", ch) < 0) tok 1067 tools/lib/traceevent/event-parse.c *tok = strdup(buf); tok 1088 tools/lib/traceevent/event-parse.c if (extend_token(tok, buf, tok_size) < 0) tok 1130 tools/lib/traceevent/event-parse.c if (extend_token(tok, buf, tok_size) < 0) tok 1140 tools/lib/traceevent/event-parse.c if (extend_token(tok, buf, tok_size + i + 1) < 0) tok 1152 tools/lib/traceevent/event-parse.c if (strcmp(*tok, "LOCAL_PR_FMT") == 0) { tok 1153 tools/lib/traceevent/event-parse.c free(*tok); tok 1154 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1155 tools/lib/traceevent/event-parse.c return force_token("\"%s\" ", tok); tok 1156 tools/lib/traceevent/event-parse.c } else if (strcmp(*tok, "STA_PR_FMT") == 0) { tok 1157 tools/lib/traceevent/event-parse.c free(*tok); tok 1158 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1159 tools/lib/traceevent/event-parse.c return force_token("\" sta:%pM\" ", tok); tok 1160 tools/lib/traceevent/event-parse.c } else if (strcmp(*tok, "VIF_PR_FMT") == 0) { tok 1161 tools/lib/traceevent/event-parse.c free(*tok); tok 1162 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1163 tools/lib/traceevent/event-parse.c return force_token("\" vif:%p(%d)\" ", tok); tok 1170 tools/lib/traceevent/event-parse.c static enum tep_event_type force_token(const char *str, char **tok) tok 1184 tools/lib/traceevent/event-parse.c type = __read_token(tok); tok 1194 tools/lib/traceevent/event-parse.c static void free_token(char *tok) tok 1196 tools/lib/traceevent/event-parse.c if (tok) tok 1197 tools/lib/traceevent/event-parse.c free(tok); tok 1200 tools/lib/traceevent/event-parse.c static enum tep_event_type read_token(char **tok) tok 1205 tools/lib/traceevent/event-parse.c type = __read_token(tok); tok 1209 tools/lib/traceevent/event-parse.c free_token(*tok); tok 1213 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1226 tools/lib/traceevent/event-parse.c enum tep_event_type tep_read_token(char **tok) tok 1228 tools/lib/traceevent/event-parse.c return read_token(tok); tok 1241 tools/lib/traceevent/event-parse.c static enum tep_event_type read_token_item(char **tok) tok 1246 tools/lib/traceevent/event-parse.c type = __read_token(tok); tok 1249 tools/lib/traceevent/event-parse.c free_token(*tok); tok 1250 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1254 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1285 tools/lib/traceevent/event-parse.c static int __read_expect_type(enum tep_event_type expect, char **tok, int newline_ok) tok 1290 tools/lib/traceevent/event-parse.c type = read_token(tok); tok 1292 tools/lib/traceevent/event-parse.c type = read_token_item(tok); tok 1296 tools/lib/traceevent/event-parse.c static int read_expect_type(enum tep_event_type expect, char **tok) tok 1298 tools/lib/traceevent/event-parse.c return __read_expect_type(expect, tok, 1); tok 1749 tools/lib/traceevent/event-parse.c char **tok, enum tep_event_type type); tok 1752 tools/lib/traceevent/event-parse.c process_arg(struct tep_event *event, struct tep_print_arg *arg, char **tok) tok 1758 tools/lib/traceevent/event-parse.c *tok = token; tok 1760 tools/lib/traceevent/event-parse.c return process_arg_token(event, arg, tok, type); tok 1764 tools/lib/traceevent/event-parse.c process_op(struct tep_event *event, struct tep_print_arg *arg, char **tok); tok 1771 tools/lib/traceevent/event-parse.c process_field_arg(struct tep_event *event, struct tep_print_arg *arg, char **tok) tok 1775 tools/lib/traceevent/event-parse.c type = process_arg(event, arg, tok); tok 1778 tools/lib/traceevent/event-parse.c type = process_op(event, arg, tok); tok 1785 tools/lib/traceevent/event-parse.c process_cond(struct tep_event *event, struct tep_print_arg *top, char **tok) tok 1807 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1829 tools/lib/traceevent/event-parse.c *tok = token; tok 1841 tools/lib/traceevent/event-parse.c process_array(struct tep_event *event, struct tep_print_arg *top, char **tok) tok 1851 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1855 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1864 tools/lib/traceevent/event-parse.c *tok = token; tok 1943 tools/lib/traceevent/event-parse.c process_op(struct tep_event *event, struct tep_print_arg *arg, char **tok) tok 1950 tools/lib/traceevent/event-parse.c token = *tok; tok 1985 tools/lib/traceevent/event-parse.c *tok = NULL; tok 1986 tools/lib/traceevent/event-parse.c type = process_arg(event, right, tok); tok 2003 tools/lib/traceevent/event-parse.c type = process_cond(event, arg, tok); tok 2044 tools/lib/traceevent/event-parse.c *tok = token; tok 2073 tools/lib/traceevent/event-parse.c type = process_arg_token(event, right, tok, type); tok 2112 tools/lib/traceevent/event-parse.c type = process_array(event, arg, tok); tok 2121 tools/lib/traceevent/event-parse.c if (type == TEP_EVENT_OP && strcmp(*tok, ":") != 0) { tok 2125 tools/lib/traceevent/event-parse.c prio = get_op_prio(*tok); tok 2128 tools/lib/traceevent/event-parse.c return process_op(event, arg, tok); tok 2130 tools/lib/traceevent/event-parse.c return process_op(event, right, tok); tok 2139 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2145 tools/lib/traceevent/event-parse.c char **tok) tok 2172 tools/lib/traceevent/event-parse.c *tok = token; tok 2179 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2518 tools/lib/traceevent/event-parse.c process_fields(struct tep_event *event, struct tep_print_flag_sym **list, char **tok) tok 2523 tools/lib/traceevent/event-parse.c char *token = *tok; tok 2585 tools/lib/traceevent/event-parse.c *tok = token; tok 2593 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2599 tools/lib/traceevent/event-parse.c process_flags(struct tep_event *event, struct tep_print_arg *arg, char **tok) tok 2640 tools/lib/traceevent/event-parse.c type = read_token_item(tok); tok 2647 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2652 tools/lib/traceevent/event-parse.c process_symbols(struct tep_event *event, struct tep_print_arg *arg, char **tok) tok 2679 tools/lib/traceevent/event-parse.c type = read_token_item(tok); tok 2686 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2692 tools/lib/traceevent/event-parse.c char **tok, enum tep_print_arg_type type) tok 2703 tools/lib/traceevent/event-parse.c return read_token_item(tok); tok 2709 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2714 tools/lib/traceevent/event-parse.c process_hex(struct tep_event *event, struct tep_print_arg *arg, char **tok) tok 2716 tools/lib/traceevent/event-parse.c return process_hex_common(event, arg, tok, TEP_PRINT_HEX); tok 2721 tools/lib/traceevent/event-parse.c char **tok) tok 2723 tools/lib/traceevent/event-parse.c return process_hex_common(event, arg, tok, TEP_PRINT_HEX_STR); tok 2727 tools/lib/traceevent/event-parse.c process_int_array(struct tep_event *event, struct tep_print_arg *arg, char **tok) tok 2741 tools/lib/traceevent/event-parse.c return read_token_item(tok); tok 2750 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2755 tools/lib/traceevent/event-parse.c process_dynamic_array(struct tep_event *event, struct tep_print_arg *arg, char **tok) tok 2769 tools/lib/traceevent/event-parse.c *tok = token; tok 2787 tools/lib/traceevent/event-parse.c *tok = token; tok 2795 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2807 tools/lib/traceevent/event-parse.c type = read_token_item(tok); tok 2814 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2820 tools/lib/traceevent/event-parse.c char **tok) tok 2843 tools/lib/traceevent/event-parse.c *tok = token; tok 2850 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2855 tools/lib/traceevent/event-parse.c process_paren(struct tep_event *event, struct tep_print_arg *arg, char **tok) tok 2907 tools/lib/traceevent/event-parse.c *tok = token; tok 2912 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2919 tools/lib/traceevent/event-parse.c char **tok) tok 2935 tools/lib/traceevent/event-parse.c *tok = token; tok 2942 tools/lib/traceevent/event-parse.c *tok = NULL; tok 2948 tools/lib/traceevent/event-parse.c char **tok) tok 2964 tools/lib/traceevent/event-parse.c *tok = token; tok 2971 tools/lib/traceevent/event-parse.c *tok = NULL; tok 3009 tools/lib/traceevent/event-parse.c struct tep_print_arg *arg, char **tok) tok 3020 tools/lib/traceevent/event-parse.c *tok = NULL; tok 3055 tools/lib/traceevent/event-parse.c *tok = token; tok 3067 tools/lib/traceevent/event-parse.c char *token, char **tok) tok 3074 tools/lib/traceevent/event-parse.c return process_flags(event, arg, tok); tok 3079 tools/lib/traceevent/event-parse.c return process_symbols(event, arg, tok); tok 3083 tools/lib/traceevent/event-parse.c return process_hex(event, arg, tok); tok 3087 tools/lib/traceevent/event-parse.c return process_hex_str(event, arg, tok); tok 3091 tools/lib/traceevent/event-parse.c return process_int_array(event, arg, tok); tok 3095 tools/lib/traceevent/event-parse.c return process_str(event, arg, tok); tok 3099 tools/lib/traceevent/event-parse.c return process_bitmask(event, arg, tok); tok 3103 tools/lib/traceevent/event-parse.c return process_dynamic_array(event, arg, tok); tok 3107 tools/lib/traceevent/event-parse.c return process_dynamic_array_len(event, arg, tok); tok 3113 tools/lib/traceevent/event-parse.c return process_func_handler(event, func, arg, tok); tok 3123 tools/lib/traceevent/event-parse.c char **tok, enum tep_event_type type) tok 3128 tools/lib/traceevent/event-parse.c token = *tok; tok 3159 tools/lib/traceevent/event-parse.c *tok = NULL; tok 3205 tools/lib/traceevent/event-parse.c *tok = token; tok 579 tools/lib/traceevent/event-parse.h enum tep_event_type tep_read_token(char **tok); tok 65 tools/lib/traceevent/parse-filter.c static enum tep_event_type read_token(char **tok) tok 80 tools/lib/traceevent/parse-filter.c *tok = malloc(3); tok 81 tools/lib/traceevent/parse-filter.c if (*tok == NULL) { tok 85 tools/lib/traceevent/parse-filter.c sprintf(*tok, "%c%c", *token, '~'); tok 91 tools/lib/traceevent/parse-filter.c *tok = token; tok 7 tools/perf/arch/s390/annotate/instructions.c char *endptr, *tok, *name; tok 13 tools/perf/arch/s390/annotate/instructions.c tok = strchr(ops->raw, ','); tok 14 tools/perf/arch/s390/annotate/instructions.c if (!tok) tok 17 tools/perf/arch/s390/annotate/instructions.c ops->target.addr = strtoull(tok + 1, &endptr, 16); tok 29 tools/perf/arch/s390/annotate/instructions.c tok = strchr(name, '>'); tok 30 tools/perf/arch/s390/annotate/instructions.c if (tok == NULL) tok 33 tools/perf/arch/s390/annotate/instructions.c *tok = '\0'; tok 35 tools/perf/arch/s390/annotate/instructions.c *tok = '>'; tok 512 tools/perf/bench/numa.c char *tok, *tok_end, *tok_step, *tok_len, *tok_mul; tok 517 tools/perf/bench/numa.c tok = strsep(&str, ","); tok 518 tools/perf/bench/numa.c if (!tok) tok 521 tools/perf/bench/numa.c tok_end = strstr(tok, "-"); tok 523 tools/perf/bench/numa.c dprintf("\ntoken: {%s}, end: {%s}\n", tok, tok_end); tok 526 tools/perf/bench/numa.c bind_cpu_0 = bind_cpu_1 = atol(tok); tok 529 tools/perf/bench/numa.c bind_cpu_0 = atol(tok); tok 534 tools/perf/bench/numa.c tok_step = strstr(tok, "#"); tok 546 tools/perf/bench/numa.c tok_len = strstr(tok, "_"); tok 554 tools/perf/bench/numa.c tok_mul = strstr(tok, "x"); tok 649 tools/perf/bench/numa.c char *tok, *tok_end, *tok_step, *tok_mul; tok 653 tools/perf/bench/numa.c tok = strsep(&str, ","); tok 654 tools/perf/bench/numa.c if (!tok) tok 657 tools/perf/bench/numa.c tok_end = strstr(tok, "-"); tok 659 tools/perf/bench/numa.c dprintf("\ntoken: {%s}, end: {%s}\n", tok, tok_end); tok 662 tools/perf/bench/numa.c bind_node_0 = bind_node_1 = atol(tok); tok 665 tools/perf/bench/numa.c bind_node_0 = atol(tok); tok 670 tools/perf/bench/numa.c tok_step = strstr(tok, "#"); tok 678 tools/perf/bench/numa.c tok_mul = strstr(tok, "x"); tok 1815 tools/perf/builtin-c2c.c char *tmp, *tok; \ tok 1821 tools/perf/builtin-c2c.c for (tok = strtok_r((char *)_list, ", ", &tmp); \ tok 1822 tools/perf/builtin-c2c.c tok; tok = strtok_r(NULL, ", ", &tmp)) { \ tok 1823 tools/perf/builtin-c2c.c ret = _fn(hpp_list, tok); \ tok 1825 tools/perf/builtin-c2c.c pr_err("Invalid --fields key: `%s'", tok); \ tok 1828 tools/perf/builtin-c2c.c pr_err("Unknown --fields key: `%s'", tok); \ tok 2633 tools/perf/builtin-c2c.c char *tok, *tmp, *buf = strdup(cl_sort); tok 2645 tools/perf/builtin-c2c.c for_each_token(tok, buf, ",", tmp) { tok 2646 tools/perf/builtin-c2c.c if (!strcmp(tok, "tid")) { tok 2648 tools/perf/builtin-c2c.c } else if (!strcmp(tok, "pid")) { tok 2650 tools/perf/builtin-c2c.c } else if (!strcmp(tok, "iaddr")) { tok 2655 tools/perf/builtin-c2c.c } else if (!strcmp(tok, "dso")) { tok 2657 tools/perf/builtin-c2c.c } else if (strcmp(tok, "offset")) { tok 2658 tools/perf/builtin-c2c.c pr_err("unrecognized sort token: %s\n", tok); tok 1667 tools/perf/builtin-kmem.c static int slab_sort_dimension__add(const char *tok, struct list_head *list) tok 1673 tools/perf/builtin-kmem.c if (!strcmp(slab_sorts[i]->name, tok)) { tok 1687 tools/perf/builtin-kmem.c static int page_sort_dimension__add(const char *tok, struct list_head *list) tok 1693 tools/perf/builtin-kmem.c if (!strcmp(page_sorts[i]->name, tok)) { tok 1709 tools/perf/builtin-kmem.c char *tok; tok 1719 tools/perf/builtin-kmem.c tok = strsep(&pos, ","); tok 1720 tools/perf/builtin-kmem.c if (!tok) tok 1722 tools/perf/builtin-kmem.c if (slab_sort_dimension__add(tok, sort_list) < 0) { tok 1723 tools/perf/builtin-kmem.c pr_err("Unknown slab --sort key: '%s'", tok); tok 1735 tools/perf/builtin-kmem.c char *tok; tok 1745 tools/perf/builtin-kmem.c tok = strsep(&pos, ","); tok 1746 tools/perf/builtin-kmem.c if (!tok) tok 1748 tools/perf/builtin-kmem.c if (page_sort_dimension__add(tok, sort_list) < 0) { tok 1749 tools/perf/builtin-kmem.c pr_err("Unknown page --sort key: '%s'", tok); tok 1415 tools/perf/builtin-sched.c static int sort_dimension__add(const char *tok, struct list_head *list) tok 1447 tools/perf/builtin-sched.c if (!strcmp(available_sorts[i]->name, tok)) { tok 3292 tools/perf/builtin-sched.c char *tmp, *tok, *str = strdup(sched->sort_order); tok 3294 tools/perf/builtin-sched.c for (tok = strtok_r(str, ", ", &tmp); tok 3295 tools/perf/builtin-sched.c tok; tok = strtok_r(NULL, ", ", &tmp)) { tok 3296 tools/perf/builtin-sched.c if (sort_dimension__add(tok, &sched->sort_list) < 0) { tok 3298 tools/perf/builtin-sched.c "Unknown --sort key: `%s'", tok); tok 2651 tools/perf/builtin-script.c char *tok, *strtok_saveptr = NULL; tok 2666 tools/perf/builtin-script.c tok = strchr(str, ':'); tok 2667 tools/perf/builtin-script.c if (tok) { tok 2668 tools/perf/builtin-script.c *tok = '\0'; tok 2669 tools/perf/builtin-script.c tok++; tok 2693 tools/perf/builtin-script.c if (strchr(tok, '+') || strchr(tok, '-')) tok 2701 tools/perf/builtin-script.c tok = str; tok 2724 tools/perf/builtin-script.c for (tok = strtok_r(tok, ",", &strtok_saveptr); tok; tok = strtok_r(NULL, ",", &strtok_saveptr)) { tok 2725 tools/perf/builtin-script.c if (*tok == '+') { tok 2729 tools/perf/builtin-script.c tok++; tok 2730 tools/perf/builtin-script.c } else if (*tok == '-') { tok 2734 tools/perf/builtin-script.c tok++; tok 2742 tools/perf/builtin-script.c if (strcmp(tok, all_output_options[i].str) == 0) tok 2745 tools/perf/builtin-script.c if (i == imax && strcmp(tok, "flags") == 0) { tok 515 tools/perf/pmu-events/jevents.c jsmntok_t *tokens, *tok; tok 527 tools/perf/pmu-events/jevents.c tok = tokens + 1; tok 544 tools/perf/pmu-events/jevents.c jsmntok_t *obj = tok++; tok 552 tools/perf/pmu-events/jevents.c field = tok + j; tok 553 tools/perf/pmu-events/jevents.c EXPECT(field->type == JSMN_STRING, tok + j, tok 555 tools/perf/pmu-events/jevents.c val = tok + j + 1; tok 556 tools/perf/pmu-events/jevents.c EXPECT(val->type == JSMN_STRING, tok + j + 1, tok 684 tools/perf/pmu-events/jevents.c tok += j; tok 686 tools/perf/pmu-events/jevents.c EXPECT(tok - tokens == len, tok, "unexpected objects at end"); tok 34 tools/perf/pmu-events/jsmn.c jsmntok_t *tok; tok 38 tools/perf/pmu-events/jsmn.c tok = &tokens[parser->toknext++]; tok 39 tools/perf/pmu-events/jsmn.c tok->start = tok->end = -1; tok 40 tools/perf/pmu-events/jsmn.c tok->size = 0; tok 41 tools/perf/pmu-events/jsmn.c return tok; tok 242 tools/perf/util/annotate.c char *endptr, *tok, *name; tok 260 tools/perf/util/annotate.c tok = strchr(name, '>'); tok 261 tools/perf/util/annotate.c if (tok == NULL) tok 264 tools/perf/util/annotate.c *tok = '\0'; tok 266 tools/perf/util/annotate.c *tok = '>'; tok 280 tools/perf/util/annotate.c tok = strchr(endptr, '*'); tok 281 tools/perf/util/annotate.c if (tok != NULL) { tok 170 tools/perf/util/callchain.c char *tok; tok 182 tools/perf/util/callchain.c while ((tok = strtok_r((char *)arg, ",", &saveptr)) != NULL) { tok 183 tools/perf/util/callchain.c if (!strncmp(tok, "none", strlen(tok))) { tok 190 tools/perf/util/callchain.c if (!parse_callchain_mode(tok) || tok 191 tools/perf/util/callchain.c !parse_callchain_order(tok) || tok 192 tools/perf/util/callchain.c !parse_callchain_sort_key(tok) || tok 193 tools/perf/util/callchain.c !parse_callchain_value(tok)) { tok 198 tools/perf/util/callchain.c if (parse_callchain_record(tok, &callchain_param)) tok 213 tools/perf/util/callchain.c if (get_stack_size(tok, &size) < 0) tok 219 tools/perf/util/callchain.c callchain_param.min_percent = strtod(tok, &endptr); tok 220 tools/perf/util/callchain.c if (tok == endptr) tok 225 tools/perf/util/callchain.c callchain_param.print_limit = strtoul(tok, &endptr, 0); tok 226 tools/perf/util/callchain.c if (tok == endptr) tok 252 tools/perf/util/callchain.c char *tok, *name, *saveptr = NULL; tok 263 tools/perf/util/callchain.c tok = strtok_r((char *)buf, ",", &saveptr); tok 264 tools/perf/util/callchain.c name = tok ? : (char *)buf; tok 286 tools/perf/util/callchain.c tok = strtok_r(NULL, ",", &saveptr); tok 287 tools/perf/util/callchain.c if (tok) { tok 290 tools/perf/util/callchain.c ret = get_stack_size(tok, &size); tok 147 tools/perf/util/expr.y int tok; tok 161 tools/perf/util/expr.y tok = NUMBER; tok 164 tools/perf/util/expr.y tok = *s; tok 168 tools/perf/util/expr.y return tok; tok 213 tools/perf/util/expr.y int tok = expr__lex(&val, &p); tok 214 tools/perf/util/expr.y if (tok == 0) { tok 218 tools/perf/util/expr.y if (tok == ID && !already_seen(val.id, one, *other, num_other)) { tok 48 tools/perf/util/mem-events.c char *tok, *saveptr = NULL; tok 60 tools/perf/util/mem-events.c tok = strtok_r((char *)buf, ",", &saveptr); tok 62 tools/perf/util/mem-events.c while (tok) { tok 66 tools/perf/util/mem-events.c if (strstr(e->tag, tok)) tok 70 tools/perf/util/mem-events.c tok = strtok_r(NULL, ",", &saveptr); tok 708 tools/perf/util/pmu.c char *tmp = NULL, *tok, *str; tok 718 tools/perf/util/pmu.c tok = strtok_r(str, ",", &tmp); tok 719 tools/perf/util/pmu.c if (strncmp(pmu_name, tok, strlen(tok))) { tok 732 tools/perf/util/pmu.c for (; tok; name += strlen(tok), tok = strtok_r(NULL, ",", &tmp)) { tok 733 tools/perf/util/pmu.c name = strstr(name, tok); tok 2429 tools/perf/util/sort.c static int add_dynamic_entry(struct evlist *evlist, const char *tok, tok 2441 tools/perf/util/sort.c str = strdup(tok); tok 2572 tools/perf/util/sort.c int sort_dimension__add(struct perf_hpp_list *list, const char *tok, tok 2581 tools/perf/util/sort.c if (strncasecmp(tok, sd->name, strlen(tok))) tok 2621 tools/perf/util/sort.c if (strncasecmp(tok, hd->name, strlen(tok))) tok 2630 tools/perf/util/sort.c if (strncasecmp(tok, sd->name, strlen(tok))) tok 2646 tools/perf/util/sort.c if (strncasecmp(tok, sd->name, strlen(tok))) tok 2662 tools/perf/util/sort.c if (!add_dynamic_entry(evlist, tok, level)) tok 2671 tools/perf/util/sort.c char *tmp, *tok; tok 2678 tools/perf/util/sort.c tok = str; tok 2695 tools/perf/util/sort.c if (*tok) { tok 2696 tools/perf/util/sort.c ret = sort_dimension__add(list, tok, evlist, level); tok 2698 tools/perf/util/sort.c if (!cacheline_size() && !strncasecmp(tok, "dcacheline", strlen(tok))) tok 2701 tools/perf/util/sort.c pr_err("Invalid --sort key: `%s'", tok); tok 2704 tools/perf/util/sort.c pr_err("Unknown --sort key: `%s'", tok); tok 2949 tools/perf/util/sort.c int output_field_add(struct perf_hpp_list *list, char *tok) tok 2956 tools/perf/util/sort.c if (strncasecmp(tok, sd->name, strlen(tok))) tok 2965 tools/perf/util/sort.c if (strncasecmp(tok, hd->name, strlen(tok))) tok 2974 tools/perf/util/sort.c if (strncasecmp(tok, sd->name, strlen(tok))) tok 2983 tools/perf/util/sort.c if (strncasecmp(tok, sd->name, strlen(tok))) tok 2994 tools/perf/util/sort.c char *tmp, *tok; tok 2997 tools/perf/util/sort.c for (tok = strtok_r(str, ", ", &tmp); tok 2998 tools/perf/util/sort.c tok; tok = strtok_r(NULL, ", ", &tmp)) { tok 2999 tools/perf/util/sort.c ret = output_field_add(list, tok); tok 3001 tools/perf/util/sort.c ui__error("Invalid --fields key: `%s'", tok); tok 3004 tools/perf/util/sort.c ui__error("Unknown --fields key: `%s'", tok); tok 296 tools/perf/util/sort.h int sort_dimension__add(struct perf_hpp_list *list, const char *tok, tok 299 tools/perf/util/sort.h int output_field_add(struct perf_hpp_list *list, char *tok); tok 279 tools/testing/selftests/net/so_txtime.c char *arg, *tok; tok 286 tools/testing/selftests/net/so_txtime.c while ((tok = strtok(arg, ","))) { tok 293 tools/testing/selftests/net/so_txtime.c array->delay_us = strtol(tok, NULL, 0) * 1000; tok 296 tools/testing/selftests/net/so_txtime.c array->data = tok[0];