opts 86 arch/arm/mach-davinci/time.c unsigned long opts; opts 103 arch/arm/mach-davinci/time.c #define USING_COMPARE(t) ((t)->opts & TIMER_OPTS_USE_COMPARE) opts 142 arch/arm/mach-davinci/time.c if (t->opts & TIMER_OPTS_ONESHOT) opts 144 arch/arm/mach-davinci/time.c else if (t->opts & TIMER_OPTS_PERIODIC) opts 174 arch/arm/mach-davinci/time.c .opts = TIMER_OPTS_DISABLED, opts 183 arch/arm/mach-davinci/time.c .opts = TIMER_OPTS_PERIODIC, opts 302 arch/arm/mach-davinci/time.c t->opts &= ~TIMER_OPTS_STATE_MASK; opts 303 arch/arm/mach-davinci/time.c t->opts |= TIMER_OPTS_DISABLED; opts 311 arch/arm/mach-davinci/time.c t->opts &= ~TIMER_OPTS_STATE_MASK; opts 312 arch/arm/mach-davinci/time.c t->opts |= TIMER_OPTS_ONESHOT; opts 321 arch/arm/mach-davinci/time.c t->opts &= ~TIMER_OPTS_STATE_MASK; opts 322 arch/arm/mach-davinci/time.c t->opts |= TIMER_OPTS_PERIODIC; opts 368 arch/arm/mach-davinci/time.c timers[TID_CLOCKEVENT].opts |= TIMER_OPTS_USE_COMPARE; opts 45 arch/sh/kernel/cpu/init.c static int x##_setup(char *opts) \ opts 32 arch/um/drivers/chan.h const struct chan_opts *opts, char **error_out); opts 15 arch/um/drivers/chan_kern.c const struct chan_opts *opts) opts 439 arch/um/drivers/chan_kern.c const struct chan_opts *opts, char **error_out) opts 462 arch/um/drivers/chan_kern.c data = (*ops->init)(str, device, opts); opts 489 arch/um/drivers/chan_kern.c const struct chan_opts *opts, char **error_out) opts 509 arch/um/drivers/chan_kern.c new = parse_chan(line, in, device, opts, error_out); opts 517 arch/um/drivers/chan_kern.c new = parse_chan(line, out, device, opts, error_out); opts 526 arch/um/drivers/chan_kern.c new = parse_chan(line, str, device, opts, error_out); opts 22 arch/um/drivers/fd.c static void *fd_init(char *str, int device, const struct chan_opts *opts) opts 46 arch/um/drivers/fd.c .raw = opts->raw }); opts 367 arch/um/drivers/line.c const struct chan_opts *opts, char **error_out) opts 383 arch/um/drivers/line.c parse_chan_pair(NULL, line, n, opts, error_out); opts 398 arch/um/drivers/line.c err = parse_chan_pair(new, line, n, opts, error_out); opts 405 arch/um/drivers/line.c parse_chan_pair(NULL, line, n, opts, error_out); opts 459 arch/um/drivers/line.c const struct chan_opts *opts, char **error_out) opts 479 arch/um/drivers/line.c return setup_one_line(lines, n, end, opts, error_out); opts 86 arch/um/drivers/line.h const struct chan_opts *opts, char **error_out); opts 90 arch/um/drivers/line.h char *str, const struct chan_opts *opts, opts 15 arch/um/drivers/null.c static void *null_init(char *str, int device, const struct chan_opts *opts) opts 24 arch/um/drivers/port_user.c static void *port_init(char *str, int device, const struct chan_opts *opts) opts 52 arch/um/drivers/port_user.c *data = ((struct port_chan) { .raw = opts->raw, opts 26 arch/um/drivers/pty.c static void *pty_chan_init(char *str, int device, const struct chan_opts *opts) opts 34 arch/um/drivers/pty.c *data = ((struct pty_chan) { .announce = opts->announce, opts 36 arch/um/drivers/pty.c .raw = opts->raw }); opts 31 arch/um/drivers/ssl.c static struct chan_opts opts = { opts 73 arch/um/drivers/ssl.c return line_config(serial_lines, ARRAY_SIZE(serial_lines), str, &opts, opts 163 arch/um/drivers/ssl.c new_title = add_xterm_umid(opts.xterm_title); opts 165 arch/um/drivers/ssl.c opts.xterm_title = new_title; opts 172 arch/um/drivers/ssl.c if (setup_one_line(serial_lines, i, s, &opts, &error)) opts 37 arch/um/drivers/stdio_console.c static struct chan_opts opts = { opts 79 arch/um/drivers/stdio_console.c return line_config(vts, ARRAY_SIZE(vts), str, &opts, error_out); opts 163 arch/um/drivers/stdio_console.c new_title = add_xterm_umid(opts.xterm_title); opts 165 arch/um/drivers/stdio_console.c opts.xterm_title = new_title; opts 174 arch/um/drivers/stdio_console.c if (setup_one_line(vts, i, s, &opts, &error)) opts 19 arch/um/drivers/tty.c static void *tty_chan_init(char *str, int device, const struct chan_opts *opts) opts 34 arch/um/drivers/tty.c .raw = opts->raw }); opts 27 arch/um/drivers/xterm.c static void *xterm_init(char *str, int device, const struct chan_opts *opts) opts 37 arch/um/drivers/xterm.c .title = opts->xterm_title, opts 38 arch/um/drivers/xterm.c .raw = opts->raw } ); opts 100 drivers/acpi/acpica/acapps.h int acpi_getopt(int argc, char **argv, char *opts); opts 89 drivers/acpi/spcr.c static char opts[64]; opts 206 drivers/acpi/spcr.c snprintf(opts, sizeof(opts), "%s,%s,0x%llx", uart, iotype, opts 209 drivers/acpi/spcr.c snprintf(opts, sizeof(opts), "%s,%s,0x%llx,%d", uart, iotype, opts 213 drivers/acpi/spcr.c pr_info("console: %s\n", opts); opts 216 drivers/acpi/spcr.c setup_earlycon(opts); opts 219 drivers/acpi/spcr.c err = add_preferred_console(uart, 0, opts + strlen(uart) + 1); opts 272 drivers/android/binderfs.c struct binderfs_mount_opts *opts) opts 275 drivers/android/binderfs.c opts->max = BINDERFS_MAX_MINOR; opts 276 drivers/android/binderfs.c opts->stats_mode = STATS_NONE; opts 294 drivers/android/binderfs.c opts->max = max_devices; opts 309 drivers/android/binderfs.c opts->stats_mode = STATS_GLOBAL; opts 219 drivers/ata/acard-ahci.c u32 opts; opts 244 drivers/ata/acard-ahci.c opts = cmd_fis_len | (qc->dev->link->pmp << 12); opts 246 drivers/ata/acard-ahci.c opts |= AHCI_CMD_WRITE; opts 248 drivers/ata/acard-ahci.c opts |= AHCI_CMD_ATAPI | AHCI_CMD_PREFETCH; opts 250 drivers/ata/acard-ahci.c ahci_fill_cmd_slot(pp, qc->hw_tag, opts); opts 277 drivers/ata/ahci.h __le32 opts; opts 396 drivers/ata/ahci.h u32 opts); opts 1284 drivers/ata/libahci.c u32 opts) opts 1290 drivers/ata/libahci.c pp->cmd_slot[tag].opts = cpu_to_le32(opts); opts 1633 drivers/ata/libahci.c u32 opts; opts 1656 drivers/ata/libahci.c opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); opts 1658 drivers/ata/libahci.c opts |= AHCI_CMD_WRITE; opts 1660 drivers/ata/libahci.c opts |= AHCI_CMD_ATAPI | AHCI_CMD_PREFETCH; opts 1662 drivers/ata/libahci.c ahci_fill_cmd_slot(pp, qc->hw_tag, opts); opts 434 drivers/base/devtmpfs.c char opts[] = "mode=0755"; opts 437 drivers/base/devtmpfs.c mnt = vfs_kern_mount(&internal_fs_type, 0, "devtmpfs", opts); opts 936 drivers/block/mtip32xx/mtip32xx.c u32 opts; opts 962 drivers/block/mtip32xx/mtip32xx.c u32 opts, opts 972 drivers/block/mtip32xx/mtip32xx.c .opts = opts opts 1140 drivers/block/mtip32xx/mtip32xx.c fis.opts = 1 << 7; opts 1221 drivers/block/mtip32xx/mtip32xx.c fis.opts = 1 << 7; opts 1262 drivers/block/mtip32xx/mtip32xx.c fis.opts = 1 << 7; opts 1298 drivers/block/mtip32xx/mtip32xx.c fis.opts = 1 << 7; opts 1496 drivers/block/mtip32xx/mtip32xx.c fis.opts = 1 << 7; opts 1585 drivers/block/mtip32xx/mtip32xx.c fis.opts = 1 << 7; opts 1783 drivers/block/mtip32xx/mtip32xx.c fis.opts = 1 << 7; opts 2086 drivers/block/mtip32xx/mtip32xx.c fis->opts = 1 << 7; opts 2114 drivers/block/mtip32xx/mtip32xx.c hdr->opts = cpu_to_le32((nents << 16) | 5 | AHCI_CMD_PREFETCH); opts 3463 drivers/block/mtip32xx/mtip32xx.c hdr->opts = cpu_to_le32(icmd->opts | icmd->fis_len); opts 3472 drivers/block/mtip32xx/mtip32xx.c hdr->opts |= cpu_to_le32((1 << 16)); opts 200 drivers/block/mtip32xx/mtip32xx.h unsigned char opts; opts 254 drivers/block/mtip32xx/mtip32xx.h __le32 opts; opts 403 drivers/block/rbd.c struct rbd_options *opts; opts 876 drivers/block/rbd.c struct rbd_options *opts; opts 905 drivers/block/rbd.c pctx->opts->queue_depth = intval; opts 916 drivers/block/rbd.c pctx->opts->alloc_size = intval; opts 924 drivers/block/rbd.c pctx->opts->lock_timeout = msecs_to_jiffies(intval * 1000); opts 933 drivers/block/rbd.c pctx->opts->read_only = true; opts 936 drivers/block/rbd.c pctx->opts->read_only = false; opts 939 drivers/block/rbd.c pctx->opts->lock_on_read = true; opts 942 drivers/block/rbd.c pctx->opts->exclusive = true; opts 945 drivers/block/rbd.c pctx->opts->trim = false; opts 2435 drivers/block/rbd.c if (rbd_dev->opts->alloc_size != rbd_dev->layout.object_size || opts 2437 drivers/block/rbd.c off = round_up(obj_req->ex.oe_off, rbd_dev->opts->alloc_size); opts 2439 drivers/block/rbd.c rbd_dev->opts->alloc_size); opts 3562 drivers/block/rbd.c if (rbd_dev->opts->lock_on_read || opts 3612 drivers/block/rbd.c if (rbd_dev->opts->exclusive) { opts 4429 drivers/block/rbd.c if (!rbd_dev->opts->exclusive) { opts 5146 drivers/block/rbd.c rbd_dev->tag_set.queue_depth = rbd_dev->opts->queue_depth; opts 5169 drivers/block/rbd.c blk_queue_io_min(q, rbd_dev->opts->alloc_size); opts 5170 drivers/block/rbd.c blk_queue_io_opt(q, rbd_dev->opts->alloc_size); opts 5172 drivers/block/rbd.c if (rbd_dev->opts->trim) { opts 5174 drivers/block/rbd.c q->limits.discard_granularity = rbd_dev->opts->alloc_size; opts 5509 drivers/block/rbd.c kfree(rbd_dev->opts); opts 5516 drivers/block/rbd.c bool need_put = !!rbd_dev->opts; opts 5591 drivers/block/rbd.c struct rbd_options *opts) opts 5599 drivers/block/rbd.c rbd_dev->opts = opts; opts 6506 drivers/block/rbd.c struct rbd_options **opts, opts 6578 drivers/block/rbd.c pctx.opts = kzalloc(sizeof(*pctx.opts), GFP_KERNEL); opts 6579 drivers/block/rbd.c if (!pctx.opts) opts 6582 drivers/block/rbd.c pctx.opts->read_only = RBD_READ_ONLY_DEFAULT; opts 6583 drivers/block/rbd.c pctx.opts->queue_depth = RBD_QUEUE_DEPTH_DEFAULT; opts 6584 drivers/block/rbd.c pctx.opts->alloc_size = RBD_ALLOC_SIZE_DEFAULT; opts 6585 drivers/block/rbd.c pctx.opts->lock_timeout = RBD_LOCK_TIMEOUT_DEFAULT; opts 6586 drivers/block/rbd.c pctx.opts->lock_on_read = RBD_LOCK_ON_READ_DEFAULT; opts 6587 drivers/block/rbd.c pctx.opts->exclusive = RBD_EXCLUSIVE_DEFAULT; opts 6588 drivers/block/rbd.c pctx.opts->trim = RBD_TRIM_DEFAULT; opts 6600 drivers/block/rbd.c *opts = pctx.opts; opts 6607 drivers/block/rbd.c kfree(pctx.opts); opts 6632 drivers/block/rbd.c if (!rbd_dev->opts->exclusive && !rbd_dev->opts->lock_on_read) opts 6645 drivers/block/rbd.c ceph_timeout_jiffies(rbd_dev->opts->lock_timeout)); opts 6663 drivers/block/rbd.c rbd_assert(!rbd_dev->opts->exclusive || rbd_is_lock_owner(rbd_dev)); opts 6896 drivers/block/rbd.c set_disk_ro(rbd_dev->disk, rbd_dev->opts->read_only); opts 6936 drivers/block/rbd.c if (rbd_dev->opts) opts 7106 drivers/block/rbd.c rbd_dev->opts->read_only = true; opts 7108 drivers/block/rbd.c if (rbd_dev->opts->alloc_size > rbd_dev->layout.object_size) { opts 7111 drivers/block/rbd.c rbd_dev->opts->alloc_size = rbd_dev->layout.object_size; opts 179 drivers/crypto/caam/qi.c struct qm_mcc_initfq opts; opts 195 drivers/crypto/caam/qi.c memset(&opts, 0, sizeof(opts)); opts 196 drivers/crypto/caam/qi.c opts.we_mask = cpu_to_be16(QM_INITFQ_WE_FQCTRL | QM_INITFQ_WE_DESTWQ | opts 199 drivers/crypto/caam/qi.c opts.fqd.fq_ctrl = cpu_to_be16(QM_FQCTRL_CPCSTASH | QM_FQCTRL_CGE); opts 200 drivers/crypto/caam/qi.c qm_fqd_set_destwq(&opts.fqd, qm_channel_caam, 2); opts 201 drivers/crypto/caam/qi.c opts.fqd.context_b = cpu_to_be32(qman_fq_fqid(rsp_fq)); opts 202 drivers/crypto/caam/qi.c qm_fqd_context_a_set64(&opts.fqd, hwdesc); opts 203 drivers/crypto/caam/qi.c opts.fqd.cgid = qipriv.cgr.cgrid; opts 205 drivers/crypto/caam/qi.c ret = qman_init_fq(req_fq, fq_sched_flag, &opts); opts 606 drivers/crypto/caam/qi.c struct qm_mcc_initfq opts; opts 624 drivers/crypto/caam/qi.c memset(&opts, 0, sizeof(opts)); opts 625 drivers/crypto/caam/qi.c opts.we_mask = cpu_to_be16(QM_INITFQ_WE_FQCTRL | QM_INITFQ_WE_DESTWQ | opts 628 drivers/crypto/caam/qi.c opts.fqd.fq_ctrl = cpu_to_be16(QM_FQCTRL_CTXASTASHING | opts 630 drivers/crypto/caam/qi.c qm_fqd_set_destwq(&opts.fqd, qman_affine_channel(cpu), 3); opts 631 drivers/crypto/caam/qi.c opts.fqd.cgid = qipriv.cgr.cgrid; opts 632 drivers/crypto/caam/qi.c opts.fqd.context_a.stashing.exclusive = QM_STASHING_EXCL_CTX | opts 634 drivers/crypto/caam/qi.c qm_fqd_set_stashing(&opts.fqd, 0, 1, 1); opts 636 drivers/crypto/caam/qi.c ret = qman_init_fq(fq, QMAN_INITFQ_FLAG_SCHED, &opts); opts 652 drivers/crypto/caam/qi.c struct qm_mcc_initcgr opts; opts 663 drivers/crypto/caam/qi.c memset(&opts, 0, sizeof(opts)); opts 664 drivers/crypto/caam/qi.c opts.we_mask = cpu_to_be16(QM_CGR_WE_CSCN_EN | QM_CGR_WE_CS_THRES | opts 666 drivers/crypto/caam/qi.c opts.cgr.cscn_en = QM_CGR_EN; opts 667 drivers/crypto/caam/qi.c opts.cgr.mode = QMAN_CGR_MODE_FRAME; opts 668 drivers/crypto/caam/qi.c qm_cgr_cs_thres_set64(&opts.cgr.cs_thres, val, 1); opts 670 drivers/crypto/caam/qi.c ret = qman_create_cgr(&qipriv.cgr, QMAN_CGR_FLAG_USE_INIT, &opts); opts 721 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c union phy_configure_opts opts = { }; opts 722 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct phy_configure_opts_mipi_dphy *cfg = &opts.mipi_dphy; opts 748 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c phy_configure(dsi->dphy, &opts); opts 87 drivers/hwtracing/coresight/coresight-stm.c #define stm_channel_off(type, opts) (type & ~opts) opts 1345 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_kmem_info opts; opts 1351 drivers/infiniband/hw/i40iw/i40iw_cm.c opts.addr = optionsbuffer; opts 1375 drivers/infiniband/hw/i40iw/i40iw_cm.c opts.size = optionssize; opts 1377 drivers/infiniband/hw/i40iw/i40iw_cm.c sqbuf = i40iw_form_cm_frame(cm_node, &opts, NULL, NULL, flags); opts 91 drivers/md/dm-crypt.c const char *opts); opts 332 drivers/md/dm-crypt.c const char *opts) opts 399 drivers/md/dm-crypt.c const char *opts) opts 556 drivers/md/dm-crypt.c const char *opts) opts 701 drivers/md/dm-crypt.c const char *opts) opts 707 drivers/misc/pti.c static int pti_console_setup(struct console *c, char *opts) opts 886 drivers/net/ethernet/3com/3c589_cs.c u16 opts = SetRxFilter | RxStation | RxBroadcast; opts 889 drivers/net/ethernet/3com/3c589_cs.c opts |= RxMulticast | RxProm; opts 891 drivers/net/ethernet/3com/3c589_cs.c opts |= RxMulticast; opts 892 drivers/net/ethernet/3com/3c589_cs.c outw(opts, ioaddr + EL3_CMD); opts 703 drivers/net/ethernet/davicom/dm9000.c u32 opts = w->wolopts; opts 709 drivers/net/ethernet/davicom/dm9000.c if (opts & ~WAKE_MAGIC) opts 712 drivers/net/ethernet/davicom/dm9000.c if (opts & WAKE_MAGIC) opts 723 drivers/net/ethernet/davicom/dm9000.c if (dm->wake_state != opts) { opts 728 drivers/net/ethernet/davicom/dm9000.c else if (dm->wake_state && !opts) opts 732 drivers/net/ethernet/davicom/dm9000.c dm->wake_state = opts; opts 263 drivers/net/ethernet/dec/tulip/de2104x.c u8 opts; opts 1865 drivers/net/ethernet/dec/tulip/de2104x.c switch(ib->opts & MediaBlockMask) { opts 1897 drivers/net/ethernet/dec/tulip/de2104x.c bufp += sizeof (ib->opts); opts 1899 drivers/net/ethernet/dec/tulip/de2104x.c if (ib->opts & MediaCustomCSRs) { opts 475 drivers/net/ethernet/hisilicon/hns/hnae.h int (*set_opts)(struct hnae_handle *handle, int type, void *opts); opts 476 drivers/net/ethernet/hisilicon/hns/hnae.h int (*get_opts)(struct hnae_handle *handle, int type, void **opts); opts 5697 drivers/net/ethernet/realtek/r8169_main.c u32 *opts) opts 5724 drivers/net/ethernet/realtek/r8169_main.c txd->opts1 = rtl8169_get_txd_opts1(opts[0], len, entry); opts 5725 drivers/net/ethernet/realtek/r8169_main.c txd->opts2 = cpu_to_le32(opts[1]); opts 5771 drivers/net/ethernet/realtek/r8169_main.c static void rtl8169_tso_csum_v1(struct sk_buff *skb, u32 *opts) opts 5776 drivers/net/ethernet/realtek/r8169_main.c opts[0] |= TD_LSO; opts 5777 drivers/net/ethernet/realtek/r8169_main.c opts[0] |= min(mss, TD_MSS_MAX) << TD0_MSS_SHIFT; opts 5782 drivers/net/ethernet/realtek/r8169_main.c opts[0] |= TD0_IP_CS | TD0_TCP_CS; opts 5784 drivers/net/ethernet/realtek/r8169_main.c opts[0] |= TD0_IP_CS | TD0_UDP_CS; opts 5791 drivers/net/ethernet/realtek/r8169_main.c struct sk_buff *skb, u32 *opts) opts 5799 drivers/net/ethernet/realtek/r8169_main.c opts[0] |= TD1_GTSENV4; opts 5806 drivers/net/ethernet/realtek/r8169_main.c opts[0] |= TD1_GTSENV6; opts 5814 drivers/net/ethernet/realtek/r8169_main.c opts[0] |= transport_offset << GTTCPHO_SHIFT; opts 5815 drivers/net/ethernet/realtek/r8169_main.c opts[1] |= min(mss, TD_MSS_MAX) << TD1_MSS_SHIFT; opts 5821 drivers/net/ethernet/realtek/r8169_main.c opts[1] |= TD1_IPv4_CS; opts 5826 drivers/net/ethernet/realtek/r8169_main.c opts[1] |= TD1_IPv6_CS; opts 5836 drivers/net/ethernet/realtek/r8169_main.c opts[1] |= TD1_TCP_CS; opts 5838 drivers/net/ethernet/realtek/r8169_main.c opts[1] |= TD1_UDP_CS; opts 5842 drivers/net/ethernet/realtek/r8169_main.c opts[1] |= transport_offset << TCPHO_SHIFT; opts 5888 drivers/net/ethernet/realtek/r8169_main.c u32 opts[2], len; opts 5901 drivers/net/ethernet/realtek/r8169_main.c opts[1] = rtl8169_tx_vlan_tag(skb); opts 5902 drivers/net/ethernet/realtek/r8169_main.c opts[0] = DescOwn; opts 5905 drivers/net/ethernet/realtek/r8169_main.c if (!rtl8169_tso_csum_v2(tp, skb, opts)) opts 5908 drivers/net/ethernet/realtek/r8169_main.c rtl8169_tso_csum_v1(skb, opts); opts 5922 drivers/net/ethernet/realtek/r8169_main.c frags = rtl8169_xmit_frags(tp, skb, opts); opts 5926 drivers/net/ethernet/realtek/r8169_main.c opts[0] |= FirstFrag; opts 5928 drivers/net/ethernet/realtek/r8169_main.c opts[0] |= FirstFrag | LastFrag; opts 5932 drivers/net/ethernet/realtek/r8169_main.c txd->opts2 = cpu_to_le32(opts[1]); opts 5941 drivers/net/ethernet/realtek/r8169_main.c txd->opts1 = rtl8169_get_txd_opts1(opts[0], len, entry); opts 469 drivers/net/ethernet/via/via-velocity.c static void velocity_get_options(struct velocity_opt *opts, int index, opts 473 drivers/net/ethernet/via/via-velocity.c velocity_set_int_opt(&opts->rx_thresh, rx_thresh[index], RX_THRESH_MIN, RX_THRESH_MAX, RX_THRESH_DEF, "rx_thresh", devname); opts 474 drivers/net/ethernet/via/via-velocity.c velocity_set_int_opt(&opts->DMA_length, DMA_length[index], DMA_LENGTH_MIN, DMA_LENGTH_MAX, DMA_LENGTH_DEF, "DMA_length", devname); opts 475 drivers/net/ethernet/via/via-velocity.c velocity_set_int_opt(&opts->numrx, RxDescriptors[index], RX_DESC_MIN, RX_DESC_MAX, RX_DESC_DEF, "RxDescriptors", devname); opts 476 drivers/net/ethernet/via/via-velocity.c velocity_set_int_opt(&opts->numtx, TxDescriptors[index], TX_DESC_MIN, TX_DESC_MAX, TX_DESC_DEF, "TxDescriptors", devname); opts 478 drivers/net/ethernet/via/via-velocity.c velocity_set_int_opt(&opts->flow_cntl, flow_control[index], FLOW_CNTL_MIN, FLOW_CNTL_MAX, FLOW_CNTL_DEF, "flow_control", devname); opts 479 drivers/net/ethernet/via/via-velocity.c velocity_set_bool_opt(&opts->flags, IP_byte_align[index], IP_ALIG_DEF, VELOCITY_FLAGS_IP_ALIGN, "IP_byte_align", devname); opts 480 drivers/net/ethernet/via/via-velocity.c velocity_set_int_opt((int *) &opts->spd_dpx, speed_duplex[index], MED_LNK_MIN, MED_LNK_MAX, MED_LNK_DEF, "Media link mode", devname); opts 481 drivers/net/ethernet/via/via-velocity.c velocity_set_int_opt(&opts->wol_opts, wol_opts[index], WOL_OPT_MIN, WOL_OPT_MAX, WOL_OPT_DEF, "Wake On Lan options", devname); opts 482 drivers/net/ethernet/via/via-velocity.c opts->numrx = (opts->numrx & ~3); opts 1293 drivers/net/hyperv/hyperv_net.h u32 opts; opts 34 drivers/net/ppp/ppp_mppe.h #define MPPE_OPTS_TO_CI(opts, ci) \ opts 39 drivers/net/ppp/ppp_mppe.h if (opts & MPPE_OPT_STATEFUL) \ opts 48 drivers/net/ppp/ppp_mppe.h if (opts & MPPE_OPT_128) \ opts 50 drivers/net/ppp/ppp_mppe.h if (opts & MPPE_OPT_40) \ opts 56 drivers/net/ppp/ppp_mppe.h #define MPPE_CI_TO_OPTS(ci, opts) \ opts 60 drivers/net/ppp/ppp_mppe.h opts = 0; \ opts 64 drivers/net/ppp/ppp_mppe.h opts |= MPPE_OPT_STATEFUL; \ opts 68 drivers/net/ppp/ppp_mppe.h opts |= MPPE_OPT_128; \ opts 70 drivers/net/ppp/ppp_mppe.h opts |= MPPE_OPT_40; \ opts 74 drivers/net/ppp/ppp_mppe.h opts |= MPPE_OPT_56; \ opts 76 drivers/net/ppp/ppp_mppe.h opts |= MPPE_OPT_D; \ opts 78 drivers/net/ppp/ppp_mppe.h opts |= MPPE_OPT_MPPC; \ opts 82 drivers/net/ppp/ppp_mppe.h opts |= MPPE_OPT_UNKNOWN; \ opts 84 drivers/net/ppp/ppp_mppe.h opts |= MPPE_OPT_UNKNOWN; \ opts 86 drivers/net/ppp/ppp_mppe.h opts |= MPPE_OPT_UNKNOWN; \ opts 168 drivers/nvme/host/core.c "Removing ctrl: NQN \"%s\"\n", ctrl->opts->subsysnqn); opts 2613 drivers/nvme/host/core.c (ctrl->opts && ctrl->opts->discovery_nqn)) opts 2867 drivers/nvme/host/core.c if (!ctrl->opts->discovery_nqn && !ctrl->kas) { opts 3498 drivers/nvme/host/core.c if (ctrl->opts && ctrl->opts->data_digest) opts 3799 drivers/nvme/host/core.c struct nvmf_ctrl_options *opts = ctrl->opts; opts 3806 drivers/nvme/host/core.c if (opts) { opts 3807 drivers/nvme/host/core.c ret = add_uevent_var(env, "NVME_TRADDR=%s", opts->traddr); opts 3812 drivers/nvme/host/core.c opts->trsvcid ?: "none"); opts 3817 drivers/nvme/host/core.c opts->host_traddr ?: "none"); opts 107 drivers/nvme/host/fabrics.c if (ctrl->opts->mask & NVMF_OPT_TRADDR) opts 108 drivers/nvme/host/fabrics.c len += snprintf(buf, size, "traddr=%s", ctrl->opts->traddr); opts 109 drivers/nvme/host/fabrics.c if (ctrl->opts->mask & NVMF_OPT_TRSVCID) opts 111 drivers/nvme/host/fabrics.c (len) ? "," : "", ctrl->opts->trsvcid); opts 112 drivers/nvme/host/fabrics.c if (ctrl->opts->mask & NVMF_OPT_HOST_TRADDR) opts 114 drivers/nvme/host/fabrics.c (len) ? "," : "", ctrl->opts->host_traddr); opts 387 drivers/nvme/host/fabrics.c if (ctrl->opts->disable_sqflow) opts 394 drivers/nvme/host/fabrics.c uuid_copy(&data->hostid, &ctrl->opts->host->id); opts 396 drivers/nvme/host/fabrics.c strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); opts 397 drivers/nvme/host/fabrics.c strncpy(data->hostnqn, ctrl->opts->host->nqn, NVMF_NQN_SIZE); opts 450 drivers/nvme/host/fabrics.c if (ctrl->opts->disable_sqflow) opts 457 drivers/nvme/host/fabrics.c uuid_copy(&data->hostid, &ctrl->opts->host->id); opts 459 drivers/nvme/host/fabrics.c strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); opts 460 drivers/nvme/host/fabrics.c strncpy(data->hostnqn, ctrl->opts->host->nqn, NVMF_NQN_SIZE); opts 476 drivers/nvme/host/fabrics.c if (ctrl->opts->max_reconnects == -1 || opts 477 drivers/nvme/host/fabrics.c ctrl->nr_reconnects < ctrl->opts->max_reconnects) opts 524 drivers/nvme/host/fabrics.c struct nvmf_ctrl_options *opts) opts 531 drivers/nvme/host/fabrics.c if (strcmp(ops->name, opts->transport) == 0) opts 618 drivers/nvme/host/fabrics.c static int nvmf_parse_options(struct nvmf_ctrl_options *opts, opts 629 drivers/nvme/host/fabrics.c opts->queue_size = NVMF_DEF_QUEUE_SIZE; opts 630 drivers/nvme/host/fabrics.c opts->nr_io_queues = num_online_cpus(); opts 631 drivers/nvme/host/fabrics.c opts->reconnect_delay = NVMF_DEF_RECONNECT_DELAY; opts 632 drivers/nvme/host/fabrics.c opts->kato = NVME_DEFAULT_KATO; opts 633 drivers/nvme/host/fabrics.c opts->duplicate_connect = false; opts 634 drivers/nvme/host/fabrics.c opts->hdr_digest = false; opts 635 drivers/nvme/host/fabrics.c opts->data_digest = false; opts 636 drivers/nvme/host/fabrics.c opts->tos = -1; /* < 0 == use transport default */ opts 649 drivers/nvme/host/fabrics.c opts->mask |= token; opts 657 drivers/nvme/host/fabrics.c kfree(opts->transport); opts 658 drivers/nvme/host/fabrics.c opts->transport = p; opts 666 drivers/nvme/host/fabrics.c kfree(opts->subsysnqn); opts 667 drivers/nvme/host/fabrics.c opts->subsysnqn = p; opts 668 drivers/nvme/host/fabrics.c nqnlen = strlen(opts->subsysnqn); opts 671 drivers/nvme/host/fabrics.c opts->subsysnqn, NVMF_NQN_SIZE); opts 675 drivers/nvme/host/fabrics.c opts->discovery_nqn = opts 676 drivers/nvme/host/fabrics.c !(strcmp(opts->subsysnqn, opts 685 drivers/nvme/host/fabrics.c kfree(opts->traddr); opts 686 drivers/nvme/host/fabrics.c opts->traddr = p; opts 694 drivers/nvme/host/fabrics.c kfree(opts->trsvcid); opts 695 drivers/nvme/host/fabrics.c opts->trsvcid = p; opts 708 drivers/nvme/host/fabrics.c opts->queue_size = token; opts 720 drivers/nvme/host/fabrics.c if (opts->discovery_nqn) { opts 725 drivers/nvme/host/fabrics.c opts->nr_io_queues = min_t(unsigned int, opts 738 drivers/nvme/host/fabrics.c } else if (token == 0 && !opts->discovery_nqn) { opts 742 drivers/nvme/host/fabrics.c opts->kato = token; opts 755 drivers/nvme/host/fabrics.c if (opts->host) { opts 757 drivers/nvme/host/fabrics.c opts->host->nqn); opts 774 drivers/nvme/host/fabrics.c nvmf_host_put(opts->host); opts 775 drivers/nvme/host/fabrics.c opts->host = nvmf_host_add(p); opts 777 drivers/nvme/host/fabrics.c if (!opts->host) { opts 792 drivers/nvme/host/fabrics.c opts->reconnect_delay = token; opts 800 drivers/nvme/host/fabrics.c kfree(opts->host_traddr); opts 801 drivers/nvme/host/fabrics.c opts->host_traddr = p; opts 819 drivers/nvme/host/fabrics.c opts->duplicate_connect = true; opts 822 drivers/nvme/host/fabrics.c opts->disable_sqflow = true; opts 825 drivers/nvme/host/fabrics.c opts->hdr_digest = true; opts 828 drivers/nvme/host/fabrics.c opts->data_digest = true; opts 840 drivers/nvme/host/fabrics.c opts->nr_write_queues = token; opts 852 drivers/nvme/host/fabrics.c opts->nr_poll_queues = token; opts 868 drivers/nvme/host/fabrics.c opts->tos = token; opts 878 drivers/nvme/host/fabrics.c if (opts->discovery_nqn) { opts 879 drivers/nvme/host/fabrics.c opts->nr_io_queues = 0; opts 880 drivers/nvme/host/fabrics.c opts->nr_write_queues = 0; opts 881 drivers/nvme/host/fabrics.c opts->nr_poll_queues = 0; opts 882 drivers/nvme/host/fabrics.c opts->duplicate_connect = true; opts 885 drivers/nvme/host/fabrics.c opts->max_reconnects = -1; opts 887 drivers/nvme/host/fabrics.c opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo, opts 888 drivers/nvme/host/fabrics.c opts->reconnect_delay); opts 890 drivers/nvme/host/fabrics.c if (!opts->host) { opts 892 drivers/nvme/host/fabrics.c opts->host = nvmf_default_host; opts 895 drivers/nvme/host/fabrics.c uuid_copy(&opts->host->id, &hostid); opts 902 drivers/nvme/host/fabrics.c static int nvmf_check_required_opts(struct nvmf_ctrl_options *opts, opts 905 drivers/nvme/host/fabrics.c if ((opts->mask & required_opts) != required_opts) { opts 910 drivers/nvme/host/fabrics.c !(opt_tokens[i].token & opts->mask)) { opts 923 drivers/nvme/host/fabrics.c struct nvmf_ctrl_options *opts) opts 925 drivers/nvme/host/fabrics.c if (!nvmf_ctlr_matches_baseopts(ctrl, opts) || opts 926 drivers/nvme/host/fabrics.c strcmp(opts->traddr, ctrl->opts->traddr) || opts 927 drivers/nvme/host/fabrics.c strcmp(opts->trsvcid, ctrl->opts->trsvcid)) opts 939 drivers/nvme/host/fabrics.c if ((opts->mask & NVMF_OPT_HOST_TRADDR) && opts 940 drivers/nvme/host/fabrics.c (ctrl->opts->mask & NVMF_OPT_HOST_TRADDR)) { opts 941 drivers/nvme/host/fabrics.c if (strcmp(opts->host_traddr, ctrl->opts->host_traddr)) opts 943 drivers/nvme/host/fabrics.c } else if ((opts->mask & NVMF_OPT_HOST_TRADDR) || opts 944 drivers/nvme/host/fabrics.c (ctrl->opts->mask & NVMF_OPT_HOST_TRADDR)) { opts 952 drivers/nvme/host/fabrics.c static int nvmf_check_allowed_opts(struct nvmf_ctrl_options *opts, opts 955 drivers/nvme/host/fabrics.c if (opts->mask & ~allowed_opts) { opts 959 drivers/nvme/host/fabrics.c if ((opt_tokens[i].token & opts->mask) && opts 972 drivers/nvme/host/fabrics.c void nvmf_free_options(struct nvmf_ctrl_options *opts) opts 974 drivers/nvme/host/fabrics.c nvmf_host_put(opts->host); opts 975 drivers/nvme/host/fabrics.c kfree(opts->transport); opts 976 drivers/nvme/host/fabrics.c kfree(opts->traddr); opts 977 drivers/nvme/host/fabrics.c kfree(opts->trsvcid); opts 978 drivers/nvme/host/fabrics.c kfree(opts->subsysnqn); opts 979 drivers/nvme/host/fabrics.c kfree(opts->host_traddr); opts 980 drivers/nvme/host/fabrics.c kfree(opts); opts 993 drivers/nvme/host/fabrics.c struct nvmf_ctrl_options *opts; opts 998 drivers/nvme/host/fabrics.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 999 drivers/nvme/host/fabrics.c if (!opts) opts 1002 drivers/nvme/host/fabrics.c ret = nvmf_parse_options(opts, buf); opts 1007 drivers/nvme/host/fabrics.c request_module("nvme-%s", opts->transport); opts 1014 drivers/nvme/host/fabrics.c ret = nvmf_check_required_opts(opts, NVMF_REQUIRED_OPTS); opts 1017 drivers/nvme/host/fabrics.c opts->mask &= ~NVMF_REQUIRED_OPTS; opts 1020 drivers/nvme/host/fabrics.c ops = nvmf_lookup_transport(opts); opts 1023 drivers/nvme/host/fabrics.c opts->transport); opts 1034 drivers/nvme/host/fabrics.c ret = nvmf_check_required_opts(opts, ops->required_opts); opts 1037 drivers/nvme/host/fabrics.c ret = nvmf_check_allowed_opts(opts, NVMF_ALLOWED_OPTS | opts 1042 drivers/nvme/host/fabrics.c ctrl = ops->create_ctrl(dev, opts); opts 1057 drivers/nvme/host/fabrics.c nvmf_free_options(opts); opts 148 drivers/nvme/host/fabrics.h struct nvmf_ctrl_options *opts); opts 153 drivers/nvme/host/fabrics.h struct nvmf_ctrl_options *opts) opts 157 drivers/nvme/host/fabrics.h strcmp(opts->subsysnqn, ctrl->opts->subsysnqn) || opts 158 drivers/nvme/host/fabrics.h strcmp(opts->host->nqn, ctrl->opts->host->nqn) || opts 159 drivers/nvme/host/fabrics.h memcmp(&opts->host->id, &ctrl->opts->host->id, sizeof(uuid_t))) opts 172 drivers/nvme/host/fabrics.h void nvmf_free_options(struct nvmf_ctrl_options *opts); opts 180 drivers/nvme/host/fabrics.h struct nvmf_ctrl_options *opts); opts 1216 drivers/nvme/host/fc.c uuid_copy(&assoc_rqst->assoc_cmd.hostid, &ctrl->ctrl.opts->host->id); opts 1217 drivers/nvme/host/fc.c strncpy(assoc_rqst->assoc_cmd.hostnqn, ctrl->ctrl.opts->host->nqn, opts 1219 drivers/nvme/host/fc.c strncpy(assoc_rqst->assoc_cmd.subnqn, ctrl->ctrl.opts->subsysnqn, opts 2041 drivers/nvme/host/fc.c if (ctrl->ctrl.opts) opts 2042 drivers/nvme/host/fc.c nvmf_free_options(ctrl->ctrl.opts); opts 2441 drivers/nvme/host/fc.c struct nvmf_ctrl_options *opts = ctrl->ctrl.opts; opts 2445 drivers/nvme/host/fc.c nr_io_queues = min(min(opts->nr_io_queues, num_online_cpus()), opts 2462 drivers/nvme/host/fc.c ctrl->tag_set.queue_depth = ctrl->ctrl.opts->queue_size; opts 2514 drivers/nvme/host/fc.c struct nvmf_ctrl_options *opts = ctrl->ctrl.opts; opts 2519 drivers/nvme/host/fc.c nr_io_queues = min(min(opts->nr_io_queues, num_online_cpus()), opts 2625 drivers/nvme/host/fc.c struct nvmf_ctrl_options *opts = ctrl->ctrl.opts; opts 2641 drivers/nvme/host/fc.c ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn); opts 2694 drivers/nvme/host/fc.c if (opts->queue_size > ctrl->ctrl.maxcmd) { opts 2699 drivers/nvme/host/fc.c opts->queue_size, ctrl->ctrl.maxcmd); opts 2700 drivers/nvme/host/fc.c opts->queue_size = ctrl->ctrl.maxcmd; opts 2703 drivers/nvme/host/fc.c if (opts->queue_size > ctrl->ctrl.sqsize + 1) { opts 2707 drivers/nvme/host/fc.c opts->queue_size, ctrl->ctrl.sqsize + 1); opts 2708 drivers/nvme/host/fc.c opts->queue_size = ctrl->ctrl.sqsize + 1; opts 2869 drivers/nvme/host/fc.c unsigned long recon_delay = ctrl->ctrl.opts->reconnect_delay * HZ; opts 3028 drivers/nvme/host/fc.c struct nvmf_ctrl_options *opts) opts 3036 drivers/nvme/host/fc.c found = nvmf_ctlr_matches_baseopts(&ctrl->ctrl, opts); opts 3046 drivers/nvme/host/fc.c nvme_fc_init_ctrl(struct device *dev, struct nvmf_ctrl_options *opts, opts 3059 drivers/nvme/host/fc.c if (!opts->duplicate_connect && opts 3060 drivers/nvme/host/fc.c nvme_fc_existing_controller(rport, opts)) { opts 3077 drivers/nvme/host/fc.c ctrl->ctrl.opts = opts; opts 3103 drivers/nvme/host/fc.c opts->nr_io_queues, opts 3107 drivers/nvme/host/fc.c ctrl->ctrl.sqsize = opts->queue_size - 1; opts 3108 drivers/nvme/host/fc.c ctrl->ctrl.kato = opts->kato; opts 3187 drivers/nvme/host/fc.c ctrl->cnum, ctrl->ctrl.opts->subsysnqn); opts 3197 drivers/nvme/host/fc.c ctrl->ctrl.opts = NULL; opts 3301 drivers/nvme/host/fc.c nvme_fc_create_ctrl(struct device *dev, struct nvmf_ctrl_options *opts) opts 3311 drivers/nvme/host/fc.c ret = nvme_fc_parse_traddr(&raddr, opts->traddr, NVMF_TRADDR_SIZE); opts 3315 drivers/nvme/host/fc.c ret = nvme_fc_parse_traddr(&laddr, opts->host_traddr, NVMF_TRADDR_SIZE); opts 3337 drivers/nvme/host/fc.c ctrl = nvme_fc_init_ctrl(dev, opts, lport, rport); opts 3346 drivers/nvme/host/fc.c __func__, opts->traddr, opts->host_traddr); opts 279 drivers/nvme/host/nvme.h struct nvmf_ctrl_options *opts; opts 541 drivers/nvme/host/rdma.c if (ctrl->ctrl.opts->mask & NVMF_OPT_HOST_TRADDR) opts 651 drivers/nvme/host/rdma.c struct nvmf_ctrl_options *opts = ctrl->ctrl.opts; opts 658 drivers/nvme/host/rdma.c min(opts->nr_io_queues, num_online_cpus())); opts 660 drivers/nvme/host/rdma.c min(opts->nr_write_queues, num_online_cpus())); opts 661 drivers/nvme/host/rdma.c nr_poll_queues = min(opts->nr_poll_queues, num_online_cpus()); opts 675 drivers/nvme/host/rdma.c if (opts->nr_write_queues && nr_read_queues < nr_io_queues) { opts 697 drivers/nvme/host/rdma.c if (opts->nr_poll_queues && nr_io_queues) { opts 752 drivers/nvme/host/rdma.c set->nr_maps = nctrl->opts->nr_poll_queues ? HCTX_MAX_TYPES : 2; opts 958 drivers/nvme/host/rdma.c nvmf_free_options(nctrl->opts); opts 975 drivers/nvme/host/rdma.c ctrl->ctrl.opts->reconnect_delay); opts 977 drivers/nvme/host/rdma.c ctrl->ctrl.opts->reconnect_delay * HZ); opts 1003 drivers/nvme/host/rdma.c if (ctrl->ctrl.opts->queue_size > ctrl->ctrl.sqsize + 1) { opts 1006 drivers/nvme/host/rdma.c ctrl->ctrl.opts->queue_size, ctrl->ctrl.sqsize + 1); opts 1569 drivers/nvme/host/rdma.c if (ctrl->opts->tos >= 0) opts 1570 drivers/nvme/host/rdma.c rdma_set_service_type(queue->cm_id, ctrl->opts->tos); opts 1824 drivers/nvme/host/rdma.c struct nvmf_ctrl_options *opts = ctrl->ctrl.opts; opts 1826 drivers/nvme/host/rdma.c if (opts->nr_write_queues && ctrl->io_queues[HCTX_TYPE_READ]) { opts 1849 drivers/nvme/host/rdma.c if (opts->nr_poll_queues && ctrl->io_queues[HCTX_TYPE_POLL]) { opts 1957 drivers/nvme/host/rdma.c nvme_rdma_existing_controller(struct nvmf_ctrl_options *opts) opts 1964 drivers/nvme/host/rdma.c found = nvmf_ip_options_match(&ctrl->ctrl, opts); opts 1974 drivers/nvme/host/rdma.c struct nvmf_ctrl_options *opts) opts 1983 drivers/nvme/host/rdma.c ctrl->ctrl.opts = opts; opts 1986 drivers/nvme/host/rdma.c if (!(opts->mask & NVMF_OPT_TRSVCID)) { opts 1987 drivers/nvme/host/rdma.c opts->trsvcid = opts 1989 drivers/nvme/host/rdma.c if (!opts->trsvcid) { opts 1993 drivers/nvme/host/rdma.c opts->mask |= NVMF_OPT_TRSVCID; opts 1997 drivers/nvme/host/rdma.c opts->traddr, opts->trsvcid, &ctrl->addr); opts 2000 drivers/nvme/host/rdma.c opts->traddr, opts->trsvcid); opts 2004 drivers/nvme/host/rdma.c if (opts->mask & NVMF_OPT_HOST_TRADDR) { opts 2006 drivers/nvme/host/rdma.c opts->host_traddr, NULL, &ctrl->src_addr); opts 2009 drivers/nvme/host/rdma.c opts->host_traddr); opts 2014 drivers/nvme/host/rdma.c if (!opts->duplicate_connect && nvme_rdma_existing_controller(opts)) { opts 2024 drivers/nvme/host/rdma.c ctrl->ctrl.queue_count = opts->nr_io_queues + opts->nr_write_queues + opts 2025 drivers/nvme/host/rdma.c opts->nr_poll_queues + 1; opts 2026 drivers/nvme/host/rdma.c ctrl->ctrl.sqsize = opts->queue_size - 1; opts 2027 drivers/nvme/host/rdma.c ctrl->ctrl.kato = opts->kato; opts 2048 drivers/nvme/host/rdma.c ctrl->ctrl.opts->subsysnqn, &ctrl->addr); opts 1311 drivers/nvme/host/tcp.c if (nctrl->opts->tos >= 0) { opts 1312 drivers/nvme/host/tcp.c opt = nctrl->opts->tos; opts 1335 drivers/nvme/host/tcp.c if (nctrl->opts->mask & NVMF_OPT_HOST_TRADDR) { opts 1346 drivers/nvme/host/tcp.c queue->hdr_digest = nctrl->opts->hdr_digest; opts 1347 drivers/nvme/host/tcp.c queue->data_digest = nctrl->opts->data_digest; opts 1493 drivers/nvme/host/tcp.c set->nr_maps = nctrl->opts->nr_poll_queues ? HCTX_MAX_TYPES : 2; opts 1590 drivers/nvme/host/tcp.c nr_io_queues = min(ctrl->opts->nr_io_queues, num_online_cpus()); opts 1591 drivers/nvme/host/tcp.c nr_io_queues += min(ctrl->opts->nr_write_queues, num_online_cpus()); opts 1592 drivers/nvme/host/tcp.c nr_io_queues += min(ctrl->opts->nr_poll_queues, num_online_cpus()); opts 1601 drivers/nvme/host/tcp.c struct nvmf_ctrl_options *opts = nctrl->opts; opts 1603 drivers/nvme/host/tcp.c if (opts->nr_write_queues && opts->nr_io_queues < nr_io_queues) { opts 1609 drivers/nvme/host/tcp.c ctrl->io_queues[HCTX_TYPE_READ] = opts->nr_io_queues; opts 1612 drivers/nvme/host/tcp.c min(opts->nr_write_queues, nr_io_queues); opts 1621 drivers/nvme/host/tcp.c min(opts->nr_io_queues, nr_io_queues); opts 1625 drivers/nvme/host/tcp.c if (opts->nr_poll_queues && nr_io_queues) { opts 1628 drivers/nvme/host/tcp.c min(opts->nr_poll_queues, nr_io_queues); opts 1820 drivers/nvme/host/tcp.c ctrl->opts->reconnect_delay); opts 1822 drivers/nvme/host/tcp.c ctrl->opts->reconnect_delay * HZ); opts 1831 drivers/nvme/host/tcp.c struct nvmf_ctrl_options *opts = ctrl->opts; opts 1843 drivers/nvme/host/tcp.c if (opts->queue_size > ctrl->sqsize + 1) opts 1846 drivers/nvme/host/tcp.c opts->queue_size, ctrl->sqsize + 1); opts 1980 drivers/nvme/host/tcp.c nvmf_free_options(nctrl->opts); opts 2181 drivers/nvme/host/tcp.c struct nvmf_ctrl_options *opts = ctrl->ctrl.opts; opts 2183 drivers/nvme/host/tcp.c if (opts->nr_write_queues && ctrl->io_queues[HCTX_TYPE_READ]) { opts 2204 drivers/nvme/host/tcp.c if (opts->nr_poll_queues && ctrl->io_queues[HCTX_TYPE_POLL]) { opts 2268 drivers/nvme/host/tcp.c nvme_tcp_existing_controller(struct nvmf_ctrl_options *opts) opts 2275 drivers/nvme/host/tcp.c found = nvmf_ip_options_match(&ctrl->ctrl, opts); opts 2285 drivers/nvme/host/tcp.c struct nvmf_ctrl_options *opts) opts 2295 drivers/nvme/host/tcp.c ctrl->ctrl.opts = opts; opts 2296 drivers/nvme/host/tcp.c ctrl->ctrl.queue_count = opts->nr_io_queues + opts->nr_write_queues + opts 2297 drivers/nvme/host/tcp.c opts->nr_poll_queues + 1; opts 2298 drivers/nvme/host/tcp.c ctrl->ctrl.sqsize = opts->queue_size - 1; opts 2299 drivers/nvme/host/tcp.c ctrl->ctrl.kato = opts->kato; opts 2306 drivers/nvme/host/tcp.c if (!(opts->mask & NVMF_OPT_TRSVCID)) { opts 2307 drivers/nvme/host/tcp.c opts->trsvcid = opts 2309 drivers/nvme/host/tcp.c if (!opts->trsvcid) { opts 2313 drivers/nvme/host/tcp.c opts->mask |= NVMF_OPT_TRSVCID; opts 2317 drivers/nvme/host/tcp.c opts->traddr, opts->trsvcid, &ctrl->addr); opts 2320 drivers/nvme/host/tcp.c opts->traddr, opts->trsvcid); opts 2324 drivers/nvme/host/tcp.c if (opts->mask & NVMF_OPT_HOST_TRADDR) { opts 2326 drivers/nvme/host/tcp.c opts->host_traddr, NULL, &ctrl->src_addr); opts 2329 drivers/nvme/host/tcp.c opts->host_traddr); opts 2334 drivers/nvme/host/tcp.c if (!opts->duplicate_connect && nvme_tcp_existing_controller(opts)) { opts 2361 drivers/nvme/host/tcp.c ctrl->ctrl.opts->subsysnqn, &ctrl->addr); opts 47 drivers/nvme/target/fcloop.c fcloop_parse_options(struct fcloop_ctrl_options *opts, opts 64 drivers/nvme/target/fcloop.c opts->mask |= token; opts 71 drivers/nvme/target/fcloop.c opts->wwnn = token64; opts 78 drivers/nvme/target/fcloop.c opts->wwpn = token64; opts 85 drivers/nvme/target/fcloop.c opts->roles = token; opts 92 drivers/nvme/target/fcloop.c opts->fcaddr = token; opts 99 drivers/nvme/target/fcloop.c opts->lpwwnn = token64; opts 106 drivers/nvme/target/fcloop.c opts->lpwwpn = token64; opts 894 drivers/nvme/target/fcloop.c struct fcloop_ctrl_options *opts; opts 905 drivers/nvme/target/fcloop.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 906 drivers/nvme/target/fcloop.c if (!opts) opts 909 drivers/nvme/target/fcloop.c ret = fcloop_parse_options(opts, buf); opts 914 drivers/nvme/target/fcloop.c if ((opts->mask & LPORT_OPTS) != LPORT_OPTS) { opts 920 drivers/nvme/target/fcloop.c pinfo.node_name = opts->wwnn; opts 921 drivers/nvme/target/fcloop.c pinfo.port_name = opts->wwpn; opts 922 drivers/nvme/target/fcloop.c pinfo.port_role = opts->roles; opts 923 drivers/nvme/target/fcloop.c pinfo.port_id = opts->fcaddr; opts 940 drivers/nvme/target/fcloop.c kfree(opts); opts 1011 drivers/nvme/target/fcloop.c struct fcloop_ctrl_options *opts; opts 1016 drivers/nvme/target/fcloop.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 1017 drivers/nvme/target/fcloop.c if (!opts) opts 1020 drivers/nvme/target/fcloop.c ret = fcloop_parse_options(opts, buf); opts 1025 drivers/nvme/target/fcloop.c if ((opts->mask & opts_mask) != opts_mask) { opts 1035 drivers/nvme/target/fcloop.c newnport->node_name = opts->wwnn; opts 1036 drivers/nvme/target/fcloop.c newnport->port_name = opts->wwpn; opts 1037 drivers/nvme/target/fcloop.c if (opts->mask & NVMF_OPT_ROLES) opts 1038 drivers/nvme/target/fcloop.c newnport->port_role = opts->roles; opts 1039 drivers/nvme/target/fcloop.c if (opts->mask & NVMF_OPT_FCADDR) opts 1040 drivers/nvme/target/fcloop.c newnport->port_id = opts->fcaddr; opts 1046 drivers/nvme/target/fcloop.c if (tmplport->localport->node_name == opts->wwnn && opts 1047 drivers/nvme/target/fcloop.c tmplport->localport->port_name == opts->wwpn) opts 1050 drivers/nvme/target/fcloop.c if (tmplport->localport->node_name == opts->lpwwnn && opts 1051 drivers/nvme/target/fcloop.c tmplport->localport->port_name == opts->lpwwpn) opts 1062 drivers/nvme/target/fcloop.c if (nport->node_name == opts->wwnn && opts 1063 drivers/nvme/target/fcloop.c nport->port_name == opts->wwpn) { opts 1076 drivers/nvme/target/fcloop.c if (opts->mask & NVMF_OPT_ROLES) opts 1077 drivers/nvme/target/fcloop.c nport->port_role = opts->roles; opts 1078 drivers/nvme/target/fcloop.c if (opts->mask & NVMF_OPT_FCADDR) opts 1079 drivers/nvme/target/fcloop.c nport->port_id = opts->fcaddr; opts 1088 drivers/nvme/target/fcloop.c kfree(opts); opts 1096 drivers/nvme/target/fcloop.c kfree(opts); opts 278 drivers/nvme/target/loop.c nvmf_free_options(nctrl->opts); opts 295 drivers/nvme/target/loop.c struct nvmf_ctrl_options *opts = ctrl->ctrl.opts; opts 299 drivers/nvme/target/loop.c nr_io_queues = min(opts->nr_io_queues, num_online_cpus()); opts 515 drivers/nvme/target/loop.c ctrl->tag_set.queue_depth = ctrl->ctrl.opts->queue_size; opts 558 drivers/nvme/target/loop.c if ((ctrl->opts->mask & NVMF_OPT_TRADDR) && opts 559 drivers/nvme/target/loop.c strcmp(ctrl->opts->traddr, p->disc_addr.traddr)) opts 569 drivers/nvme/target/loop.c struct nvmf_ctrl_options *opts) opts 578 drivers/nvme/target/loop.c ctrl->ctrl.opts = opts; opts 590 drivers/nvme/target/loop.c ctrl->ctrl.sqsize = opts->queue_size - 1; opts 591 drivers/nvme/target/loop.c ctrl->ctrl.kato = opts->kato; opts 594 drivers/nvme/target/loop.c ctrl->queues = kcalloc(opts->nr_io_queues + 1, sizeof(*ctrl->queues), opts 603 drivers/nvme/target/loop.c if (opts->queue_size > ctrl->ctrl.maxcmd) { opts 607 drivers/nvme/target/loop.c opts->queue_size, ctrl->ctrl.maxcmd); opts 608 drivers/nvme/target/loop.c opts->queue_size = ctrl->ctrl.maxcmd; opts 611 drivers/nvme/target/loop.c if (opts->nr_io_queues) { opts 620 drivers/nvme/target/loop.c "new ctrl: \"%s\"\n", ctrl->ctrl.opts->subsysnqn); opts 939 drivers/of/base.c struct device_node *of_find_node_opts_by_path(const char *path, const char **opts) opts 946 drivers/of/base.c if (opts) opts 947 drivers/of/base.c *opts = separator ? separator + 1 : NULL; opts 108 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c static int sun6i_dphy_configure(struct phy *phy, union phy_configure_opts *opts) opts 113 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c ret = phy_mipi_dphy_config_validate(&opts->mipi_dphy); opts 117 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c memcpy(&dphy->config, opts, sizeof(dphy->config)); opts 97 drivers/phy/cadence/cdns-dphy.c struct phy_configure_opts_mipi_dphy *opts, opts 116 drivers/phy/cadence/cdns-dphy.c dlane_bps = opts->hs_clk_rate; opts 214 drivers/phy/cadence/cdns-dphy.c struct phy_configure_opts_mipi_dphy *opts, opts 221 drivers/phy/cadence/cdns-dphy.c ret = phy_mipi_dphy_config_validate(opts); opts 226 drivers/phy/cadence/cdns-dphy.c opts, &dsi_hfp_ext); opts 230 drivers/phy/cadence/cdns-dphy.c opts->wakeup = cdns_dphy_get_wakeup_time_ns(dphy) / 1000; opts 236 drivers/phy/cadence/cdns-dphy.c union phy_configure_opts *opts) opts 243 drivers/phy/cadence/cdns-dphy.c return cdns_dphy_config_from_opts(phy, &opts->mipi_dphy, &cfg); opts 246 drivers/phy/cadence/cdns-dphy.c static int cdns_dphy_configure(struct phy *phy, union phy_configure_opts *opts) opts 252 drivers/phy/cadence/cdns-dphy.c ret = cdns_dphy_config_from_opts(phy, &opts->mipi_dphy, &cfg); opts 320 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c static int mixel_dphy_configure(struct phy *phy, union phy_configure_opts *opts) opts 326 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c ret = mixel_dphy_config_from_opts(phy, &opts->mipi_dphy, &cfg); opts 349 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c union phy_configure_opts *opts) opts 356 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c return mixel_dphy_config_from_opts(phy, &opts->mipi_dphy, &cfg); opts 433 drivers/phy/phy-core.c int phy_configure(struct phy *phy, union phy_configure_opts *opts) opts 444 drivers/phy/phy-core.c ret = phy->ops->configure(phy, opts); opts 468 drivers/phy/phy-core.c union phy_configure_opts *opts) opts 479 drivers/phy/phy-core.c ret = phy->ops->validate(phy, mode, submode, opts); opts 777 drivers/power/supply/bq27xxx_battery.c .opts = (opt), \ opts 785 drivers/power/supply/bq27xxx_battery.c u32 opts; opts 1102 drivers/power/supply/bq27xxx_battery.c if (!(di->opts & BQ27XXX_O_RAM) && !bq27xxx_dt_to_nvm) { opts 1104 drivers/power/supply/bq27xxx_battery.c if (!(di->opts & BQ27XXX_O_RAM)) { opts 1172 drivers/power/supply/bq27xxx_battery.c bool cfgup = di->opts & BQ27XXX_O_CFGUP; opts 1271 drivers/power/supply/bq27xxx_battery.c if (updated && !(di->opts & BQ27XXX_O_CFGUP)) { opts 1338 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) opts 1364 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) opts 1380 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) { opts 1406 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) opts 1416 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) opts 1438 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) opts 1460 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) opts 1517 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) opts 1528 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_OTDC) opts 1530 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_UTOT) opts 1541 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_UTOT) opts 1552 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) opts 1574 drivers/power/supply/bq27xxx_battery.c bool has_ci_flag = di->opts & BQ27XXX_O_ZERO; opts 1575 drivers/power/supply/bq27xxx_battery.c bool has_singe_flag = di->opts & BQ27XXX_O_ZERO; opts 1655 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) { opts 1676 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) { opts 1704 drivers/power/supply/bq27xxx_battery.c if (di->opts & BQ27XXX_O_ZERO) { opts 1873 drivers/power/supply/bq27xxx_battery.c di->opts = bq27xxx_chip_data[di->chip].opts; opts 173 drivers/sbus/char/display7seg.c struct device_node *opts; opts 203 drivers/sbus/char/display7seg.c opts = of_find_node_by_path("/options"); opts 204 drivers/sbus/char/display7seg.c if (opts && opts 205 drivers/sbus/char/display7seg.c of_get_property(opts, "d7s-flipped?", NULL)) opts 224 drivers/sbus/char/display7seg.c of_node_put(opts); opts 2386 drivers/scsi/qla2xxx/qla_iocb.c uint16_t opts; opts 2391 drivers/scsi/qla2xxx/qla_iocb.c opts = lio->u.logio.flags & SRB_LOGIN_COND_PLOGI ? BIT_0 : 0; opts 2392 drivers/scsi/qla2xxx/qla_iocb.c opts |= lio->u.logio.flags & SRB_LOGIN_SKIP_PRLI ? BIT_1 : 0; opts 2395 drivers/scsi/qla2xxx/qla_iocb.c mbx->mb10 = cpu_to_le16(opts); opts 2397 drivers/scsi/qla2xxx/qla_iocb.c mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts); opts 6593 drivers/scsi/qla2xxx/qla_mbx.c int qla28xx_secure_flash_update(scsi_qla_host_t *vha, uint16_t opts, opts 6602 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = opts; opts 4450 drivers/scsi/scsi_debug.c module_param_named(opts, sdebug_opts, int, S_IRUGO | S_IWUSR); opts 4510 drivers/scsi/scsi_debug.c MODULE_PARM_DESC(opts, "1->noise, 2->medium_err, 4->timeout, 8->recovered_err... (def=0)"); opts 4554 drivers/scsi/scsi_debug.c int opts; opts 4561 drivers/scsi/scsi_debug.c if (1 != sscanf(arr, "%d", &opts)) opts 4563 drivers/scsi/scsi_debug.c sdebug_opts = opts; opts 4564 drivers/scsi/scsi_debug.c sdebug_verbose = !!(SDEBUG_OPT_NOISE & opts); opts 4565 drivers/scsi/scsi_debug.c sdebug_any_injecting_opt = !!(SDEBUG_OPT_ALL_INJECTING & opts); opts 4705 drivers/scsi/scsi_debug.c int opts; opts 4710 drivers/scsi/scsi_debug.c if (kstrtoint(work + 2, 16, &opts) == 0) opts 4713 drivers/scsi/scsi_debug.c if (kstrtoint(work, 10, &opts) == 0) opts 4719 drivers/scsi/scsi_debug.c sdebug_opts = opts; opts 4720 drivers/scsi/scsi_debug.c sdebug_verbose = !!(SDEBUG_OPT_NOISE & opts); opts 4721 drivers/scsi/scsi_debug.c sdebug_any_injecting_opt = !!(SDEBUG_OPT_ALL_INJECTING & opts); opts 4725 drivers/scsi/scsi_debug.c static DRIVER_ATTR_RW(opts); opts 1931 drivers/scsi/sym53c8xx_2/sym_hipd.c static void sym_settrans(struct sym_hcb *np, int target, u_char opts, u_char ofs, opts 1982 drivers/scsi/sym53c8xx_2/sym_hipd.c if (opts) { opts 2124 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_setpprot(struct sym_hcb *np, int target, u_char opts, u_char ofs, opts 2130 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_settrans(np, target, opts, ofs, per, wide, div, fak); opts 2139 drivers/scsi/sym53c8xx_2/sym_hipd.c spi_iu(starget) = tp->tgoal.iu = !!(opts & PPR_OPT_IU); opts 2140 drivers/scsi/sym53c8xx_2/sym_hipd.c spi_dt(starget) = tp->tgoal.dt = !!(opts & PPR_OPT_DT); opts 2141 drivers/scsi/sym53c8xx_2/sym_hipd.c spi_qas(starget) = tp->tgoal.qas = !!(opts & PPR_OPT_QAS); opts 4069 drivers/scsi/sym53c8xx_2/sym_hipd.c unsigned char opts = np->msgin[7] & PPR_OPT_MASK; opts 4083 drivers/scsi/sym53c8xx_2/sym_hipd.c opts = 0; opts 4085 drivers/scsi/sym53c8xx_2/sym_hipd.c if (opts != (np->msgin[7] & PPR_OPT_MASK)) opts 4088 drivers/scsi/sym53c8xx_2/sym_hipd.c dt = opts & PPR_OPT_DT; opts 4123 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_setpprot(np, target, opts, ofs, per, wide, div, fak); opts 4134 drivers/scsi/sym53c8xx_2/sym_hipd.c spi_populate_ppr_msg(np->msgout, per, ofs, wide, opts); opts 4150 drivers/scsi/sym53c8xx_2/sym_hipd.c if (!req && !opts) { opts 1851 drivers/soc/fsl/qbman/qman.c int qman_init_fq(struct qman_fq *fq, u32 flags, struct qm_mcc_initfq *opts) opts 1869 drivers/soc/fsl/qbman/qman.c if (opts && (be16_to_cpu(opts->we_mask) & QM_INITFQ_WE_OAC)) { opts 1871 drivers/soc/fsl/qbman/qman.c if (be16_to_cpu(opts->we_mask) & QM_INITFQ_WE_TDTHRESH) opts 1883 drivers/soc/fsl/qbman/qman.c if (opts) opts 1884 drivers/soc/fsl/qbman/qman.c mcc->initfq = *opts; opts 1945 drivers/soc/fsl/qbman/qman.c if (opts) { opts 1946 drivers/soc/fsl/qbman/qman.c if (be16_to_cpu(opts->we_mask) & QM_INITFQ_WE_FQCTRL) { opts 1947 drivers/soc/fsl/qbman/qman.c if (be16_to_cpu(opts->fqd.fq_ctrl) & QM_FQCTRL_CGE) opts 1952 drivers/soc/fsl/qbman/qman.c if (be16_to_cpu(opts->we_mask) & QM_INITFQ_WE_CGID) opts 1953 drivers/soc/fsl/qbman/qman.c fq->cgr_groupid = opts->fqd.cgid; opts 2353 drivers/soc/fsl/qbman/qman.c struct qm_mcc_initcgr *opts) opts 2362 drivers/soc/fsl/qbman/qman.c if (opts) opts 2363 drivers/soc/fsl/qbman/qman.c mcc->initcgr = *opts; opts 2420 drivers/soc/fsl/qbman/qman.c struct qm_mcc_initcgr *opts) opts 2443 drivers/soc/fsl/qbman/qman.c if (opts) { opts 2444 drivers/soc/fsl/qbman/qman.c struct qm_mcc_initcgr local_opts = *opts; opts 389 drivers/soc/fsl/qbman/qman_test_stash.c struct qm_mcc_initfq opts; opts 408 drivers/soc/fsl/qbman/qman_test_stash.c memset(&opts, 0, sizeof(opts)); opts 409 drivers/soc/fsl/qbman/qman_test_stash.c opts.we_mask = cpu_to_be16(QM_INITFQ_WE_FQCTRL | opts 411 drivers/soc/fsl/qbman/qman_test_stash.c opts.fqd.fq_ctrl = cpu_to_be16(QM_FQCTRL_CTXASTASHING); opts 412 drivers/soc/fsl/qbman/qman_test_stash.c qm_fqd_set_stashing(&opts.fqd, 0, STASH_DATA_CL, STASH_CTX_CL); opts 414 drivers/soc/fsl/qbman/qman_test_stash.c QMAN_INITFQ_FLAG_LOCAL, &opts); opts 125 drivers/staging/exfat/exfat_core.c struct exfat_mount_options *opts = &EXFAT_SB(sb)->options; opts 127 drivers/staging/exfat/exfat_core.c if (opts->errors == EXFAT_ERRORS_PANIC) { opts 129 drivers/staging/exfat/exfat_core.c } else if ((opts->errors == EXFAT_ERRORS_RO) && !sb_rdonly(sb)) { opts 615 drivers/staging/exfat/exfat_core.c struct exfat_mount_options *opts = &sbi->options; opts 631 drivers/staging/exfat/exfat_core.c if (opts->discard) { opts 637 drivers/staging/exfat/exfat_core.c opts->discard = 0; opts 3539 drivers/staging/exfat/exfat_super.c struct exfat_mount_options *opts = &sbi->options; opts 3541 drivers/staging/exfat/exfat_super.c if (__kuid_val(opts->fs_uid)) opts 3542 drivers/staging/exfat/exfat_super.c seq_printf(m, ",uid=%u", __kuid_val(opts->fs_uid)); opts 3543 drivers/staging/exfat/exfat_super.c if (__kgid_val(opts->fs_gid)) opts 3544 drivers/staging/exfat/exfat_super.c seq_printf(m, ",gid=%u", __kgid_val(opts->fs_gid)); opts 3545 drivers/staging/exfat/exfat_super.c seq_printf(m, ",fmask=%04o", opts->fs_fmask); opts 3546 drivers/staging/exfat/exfat_super.c seq_printf(m, ",dmask=%04o", opts->fs_dmask); opts 3547 drivers/staging/exfat/exfat_super.c if (opts->allow_utime) opts 3548 drivers/staging/exfat/exfat_super.c seq_printf(m, ",allow_utime=%04o", opts->allow_utime); opts 3553 drivers/staging/exfat/exfat_super.c seq_printf(m, ",namecase=%u", opts->casesensitive); opts 3554 drivers/staging/exfat/exfat_super.c if (opts->errors == EXFAT_ERRORS_CONT) opts 3556 drivers/staging/exfat/exfat_super.c else if (opts->errors == EXFAT_ERRORS_PANIC) opts 3561 drivers/staging/exfat/exfat_super.c if (opts->discard) opts 3668 drivers/staging/exfat/exfat_super.c struct exfat_mount_options *opts) opts 3675 drivers/staging/exfat/exfat_super.c opts->fs_uid = current_uid(); opts 3676 drivers/staging/exfat/exfat_super.c opts->fs_gid = current_gid(); opts 3677 drivers/staging/exfat/exfat_super.c opts->fs_fmask = opts->fs_dmask = current->fs->umask; opts 3678 drivers/staging/exfat/exfat_super.c opts->allow_utime = U16_MAX; opts 3679 drivers/staging/exfat/exfat_super.c opts->codepage = exfat_default_codepage; opts 3680 drivers/staging/exfat/exfat_super.c opts->iocharset = exfat_default_iocharset; opts 3681 drivers/staging/exfat/exfat_super.c opts->casesensitive = 0; opts 3682 drivers/staging/exfat/exfat_super.c opts->errors = EXFAT_ERRORS_RO; opts 3684 drivers/staging/exfat/exfat_super.c opts->discard = 0; opts 3702 drivers/staging/exfat/exfat_super.c opts->fs_uid = KUIDT_INIT(option); opts 3707 drivers/staging/exfat/exfat_super.c opts->fs_gid = KGIDT_INIT(option); opts 3715 drivers/staging/exfat/exfat_super.c opts->fs_fmask = option; opts 3717 drivers/staging/exfat/exfat_super.c opts->fs_dmask = option; opts 3722 drivers/staging/exfat/exfat_super.c opts->allow_utime = option & 0022; opts 3727 drivers/staging/exfat/exfat_super.c opts->codepage = option; opts 3730 drivers/staging/exfat/exfat_super.c if (opts->iocharset != exfat_default_iocharset) opts 3731 drivers/staging/exfat/exfat_super.c kfree(opts->iocharset); opts 3735 drivers/staging/exfat/exfat_super.c opts->iocharset = iocharset; opts 3740 drivers/staging/exfat/exfat_super.c opts->casesensitive = option; opts 3743 drivers/staging/exfat/exfat_super.c opts->errors = EXFAT_ERRORS_CONT; opts 3746 drivers/staging/exfat/exfat_super.c opts->errors = EXFAT_ERRORS_PANIC; opts 3749 drivers/staging/exfat/exfat_super.c opts->errors = EXFAT_ERRORS_RO; opts 3756 drivers/staging/exfat/exfat_super.c opts->discard = 1; opts 3770 drivers/staging/exfat/exfat_super.c if (opts->allow_utime == U16_MAX) opts 3771 drivers/staging/exfat/exfat_super.c opts->allow_utime = ~opts->fs_dmask & 0022; opts 515 drivers/staging/vt6655/card.c for (uu = 0; uu < priv->opts.tx_descs[0]; uu++) { opts 520 drivers/staging/vt6655/card.c for (uu = 0; uu < priv->opts.tx_descs[1]; uu++) { opts 558 drivers/staging/vt6655/card.c for (uu = 0; uu < priv->opts.rx_descs0; uu++) { opts 566 drivers/staging/vt6655/card.c for (uu = 0; uu < priv->opts.rx_descs1; uu++) { opts 75 drivers/staging/vt6655/device.h #define AVAIL_TD(p, q) ((p)->opts.tx_descs[(q)] - ((p)->iTDUsed[(q)])) opts 149 drivers/staging/vt6655/device.h struct vnt_options opts; opts 160 drivers/staging/vt6655/device_main.c struct vnt_options *opts = &priv->opts; opts 162 drivers/staging/vt6655/device_main.c opts->rx_descs0 = RX_DESC_DEF0; opts 163 drivers/staging/vt6655/device_main.c opts->rx_descs1 = RX_DESC_DEF1; opts 164 drivers/staging/vt6655/device_main.c opts->tx_descs[0] = TX_DESC_DEF0; opts 165 drivers/staging/vt6655/device_main.c opts->tx_descs[1] = TX_DESC_DEF1; opts 166 drivers/staging/vt6655/device_main.c opts->int_works = INT_WORKS_DEF; opts 168 drivers/staging/vt6655/device_main.c opts->short_retry = SHORT_RETRY_DEF; opts 169 drivers/staging/vt6655/device_main.c opts->long_retry = LONG_RETRY_DEF; opts 170 drivers/staging/vt6655/device_main.c opts->bbp_type = BBP_TYPE_DEF; opts 176 drivers/staging/vt6655/device_main.c priv->byShortRetryLimit = priv->opts.short_retry; opts 177 drivers/staging/vt6655/device_main.c priv->byLongRetryLimit = priv->opts.long_retry; opts 178 drivers/staging/vt6655/device_main.c priv->byBBType = priv->opts.bbp_type; opts 444 drivers/staging/vt6655/device_main.c priv->opts.rx_descs0 * sizeof(struct vnt_rx_desc) + priv->opts.rx_descs1 * sizeof(struct vnt_rx_desc) + priv->opts.tx_descs[0] * sizeof(struct vnt_tx_desc) + priv->opts.tx_descs[1] * sizeof(struct vnt_tx_desc), opts 453 drivers/staging/vt6655/device_main.c priv->opts.rx_descs0 * sizeof(struct vnt_rx_desc); opts 457 drivers/staging/vt6655/device_main.c priv->opts.rx_descs0 * sizeof(struct vnt_rx_desc); opts 460 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[0] * PKT_BUF_SZ + priv->opts.tx_descs[1] * PKT_BUF_SZ + CB_BEACON_BUF_SIZE + CB_MAX_BUF_SIZE, opts 466 drivers/staging/vt6655/device_main.c priv->opts.rx_descs0 * sizeof(struct vnt_rx_desc) + opts 467 drivers/staging/vt6655/device_main.c priv->opts.rx_descs1 * sizeof(struct vnt_rx_desc) + opts 468 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[0] * sizeof(struct vnt_tx_desc) + opts 469 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[1] * sizeof(struct vnt_tx_desc), opts 475 drivers/staging/vt6655/device_main.c priv->opts.rx_descs1 * sizeof(struct vnt_rx_desc); opts 478 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[0] * sizeof(struct vnt_tx_desc); opts 482 drivers/staging/vt6655/device_main.c + priv->opts.rx_descs0 * sizeof(struct vnt_rx_desc) opts 483 drivers/staging/vt6655/device_main.c + priv->opts.rx_descs1 * sizeof(struct vnt_rx_desc); opts 486 drivers/staging/vt6655/device_main.c + priv->opts.rx_descs0 * sizeof(struct vnt_rx_desc) opts 487 drivers/staging/vt6655/device_main.c + priv->opts.rx_descs1 * sizeof(struct vnt_rx_desc) opts 488 drivers/staging/vt6655/device_main.c + priv->opts.tx_descs[0] * sizeof(struct vnt_tx_desc); opts 491 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[0] * PKT_BUF_SZ; opts 494 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[1] * PKT_BUF_SZ; opts 500 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[0] * PKT_BUF_SZ; opts 503 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[1] * PKT_BUF_SZ; opts 511 drivers/staging/vt6655/device_main.c priv->opts.rx_descs0 * sizeof(struct vnt_rx_desc) + opts 512 drivers/staging/vt6655/device_main.c priv->opts.rx_descs1 * sizeof(struct vnt_rx_desc) + opts 513 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[0] * sizeof(struct vnt_tx_desc) + opts 514 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[1] * sizeof(struct vnt_tx_desc), opts 519 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[0] * PKT_BUF_SZ + opts 520 drivers/staging/vt6655/device_main.c priv->opts.tx_descs[1] * PKT_BUF_SZ + opts 534 drivers/staging/vt6655/device_main.c for (i = 0; i < priv->opts.rx_descs0; opts 549 drivers/staging/vt6655/device_main.c desc->next = &priv->aRD0Ring[(i + 1) % priv->opts.rx_descs0]; opts 580 drivers/staging/vt6655/device_main.c for (i = 0; i < priv->opts.rx_descs1; opts 595 drivers/staging/vt6655/device_main.c desc->next = &priv->aRD1Ring[(i+1) % priv->opts.rx_descs1]; opts 622 drivers/staging/vt6655/device_main.c for (i = 0; i < priv->opts.rx_descs0; i++) { opts 634 drivers/staging/vt6655/device_main.c for (i = 0; i < priv->opts.rx_descs1; i++) { opts 650 drivers/staging/vt6655/device_main.c for (i = 0; i < priv->opts.tx_descs[0]; opts 662 drivers/staging/vt6655/device_main.c desc->next = &(priv->apTD0Rings[(i+1) % priv->opts.tx_descs[0]]); opts 690 drivers/staging/vt6655/device_main.c for (i = 0; i < priv->opts.tx_descs[1]; opts 702 drivers/staging/vt6655/device_main.c desc->next = &(priv->apTD1Rings[(i + 1) % priv->opts.tx_descs[1]]); opts 725 drivers/staging/vt6655/device_main.c for (i = 0; i < priv->opts.tx_descs[0]; i++) { opts 738 drivers/staging/vt6655/device_main.c for (i = 0; i < priv->opts.tx_descs[1]; i++) { opts 1118 drivers/staging/vt6655/device_main.c if (max_count > priv->opts.int_works) opts 1849 drivers/target/target_core_configfs.c char *orig, *ptr, *opts; opts 1870 drivers/target/target_core_configfs.c opts = kstrdup(page, GFP_KERNEL); opts 1871 drivers/target/target_core_configfs.c if (!opts) opts 1874 drivers/target/target_core_configfs.c orig = opts; opts 1875 drivers/target/target_core_configfs.c while ((ptr = strsep(&opts, ",\n")) != NULL) { opts 718 drivers/target/target_core_file.c char *orig, *ptr, *arg_p, *opts; opts 722 drivers/target/target_core_file.c opts = kstrdup(page, GFP_KERNEL); opts 723 drivers/target/target_core_file.c if (!opts) opts 726 drivers/target/target_core_file.c orig = opts; opts 728 drivers/target/target_core_file.c while ((ptr = strsep(&opts, ",\n")) != NULL) { opts 535 drivers/target/target_core_iblock.c char *orig, *ptr, *arg_p, *opts; opts 540 drivers/target/target_core_iblock.c opts = kstrdup(page, GFP_KERNEL); opts 541 drivers/target/target_core_iblock.c if (!opts) opts 544 drivers/target/target_core_iblock.c orig = opts; opts 546 drivers/target/target_core_iblock.c while ((ptr = strsep(&opts, ",\n")) != NULL) { opts 722 drivers/target/target_core_pscsi.c char *orig, *ptr, *opts; opts 726 drivers/target/target_core_pscsi.c opts = kstrdup(page, GFP_KERNEL); opts 727 drivers/target/target_core_pscsi.c if (!opts) opts 730 drivers/target/target_core_pscsi.c orig = opts; opts 732 drivers/target/target_core_pscsi.c while ((ptr = strsep(&opts, ",\n")) != NULL) { opts 546 drivers/target/target_core_rd.c char *orig, *ptr, *opts; opts 550 drivers/target/target_core_rd.c opts = kstrdup(page, GFP_KERNEL); opts 551 drivers/target/target_core_rd.c if (!opts) opts 554 drivers/target/target_core_rd.c orig = opts; opts 556 drivers/target/target_core_rd.c while ((ptr = strsep(&opts, ",\n")) != NULL) { opts 2157 drivers/target/target_core_user.c char *orig, *ptr, *opts; opts 2161 drivers/target/target_core_user.c opts = kstrdup(page, GFP_KERNEL); opts 2162 drivers/target/target_core_user.c if (!opts) opts 2165 drivers/target/target_core_user.c orig = opts; opts 2167 drivers/target/target_core_user.c while ((ptr = strsep(&opts, ",\n")) != NULL) { opts 728 drivers/usb/gadget/function/f_acm.c struct f_serial_opts *opts; opts 749 drivers/usb/gadget/function/f_acm.c opts = container_of(fi, struct f_serial_opts, func_inst); opts 750 drivers/usb/gadget/function/f_acm.c acm->port_num = opts->port_num; opts 765 drivers/usb/gadget/function/f_acm.c struct f_serial_opts *opts = to_f_serial_opts(item); opts 767 drivers/usb/gadget/function/f_acm.c usb_put_function_instance(&opts->func_inst); opts 794 drivers/usb/gadget/function/f_acm.c struct f_serial_opts *opts; opts 796 drivers/usb/gadget/function/f_acm.c opts = container_of(fi, struct f_serial_opts, func_inst); opts 797 drivers/usb/gadget/function/f_acm.c gserial_free_line(opts->port_num); opts 798 drivers/usb/gadget/function/f_acm.c kfree(opts); opts 803 drivers/usb/gadget/function/f_acm.c struct f_serial_opts *opts; opts 806 drivers/usb/gadget/function/f_acm.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 807 drivers/usb/gadget/function/f_acm.c if (!opts) opts 809 drivers/usb/gadget/function/f_acm.c opts->func_inst.free_func_inst = acm_free_instance; opts 810 drivers/usb/gadget/function/f_acm.c ret = gserial_alloc_line(&opts->port_num); opts 812 drivers/usb/gadget/function/f_acm.c kfree(opts); opts 815 drivers/usb/gadget/function/f_acm.c config_group_init_type_name(&opts->func_inst.group, "", opts 817 drivers/usb/gadget/function/f_acm.c return &opts->func_inst; opts 861 drivers/usb/gadget/function/f_ecm.c struct f_ecm_opts *opts; opts 863 drivers/usb/gadget/function/f_ecm.c opts = container_of(f, struct f_ecm_opts, func_inst); opts 864 drivers/usb/gadget/function/f_ecm.c if (opts->bound) opts 865 drivers/usb/gadget/function/f_ecm.c gether_cleanup(netdev_priv(opts->net)); opts 867 drivers/usb/gadget/function/f_ecm.c free_netdev(opts->net); opts 868 drivers/usb/gadget/function/f_ecm.c kfree(opts); opts 873 drivers/usb/gadget/function/f_ecm.c struct f_ecm_opts *opts; opts 875 drivers/usb/gadget/function/f_ecm.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 876 drivers/usb/gadget/function/f_ecm.c if (!opts) opts 878 drivers/usb/gadget/function/f_ecm.c mutex_init(&opts->lock); opts 879 drivers/usb/gadget/function/f_ecm.c opts->func_inst.free_func_inst = ecm_free_inst; opts 880 drivers/usb/gadget/function/f_ecm.c opts->net = gether_setup_default(); opts 881 drivers/usb/gadget/function/f_ecm.c if (IS_ERR(opts->net)) { opts 882 drivers/usb/gadget/function/f_ecm.c struct net_device *net = opts->net; opts 883 drivers/usb/gadget/function/f_ecm.c kfree(opts); opts 887 drivers/usb/gadget/function/f_ecm.c config_group_init_type_name(&opts->func_inst.group, "", &ecm_func_type); opts 889 drivers/usb/gadget/function/f_ecm.c return &opts->func_inst; opts 895 drivers/usb/gadget/function/f_ecm.c struct f_ecm_opts *opts; opts 898 drivers/usb/gadget/function/f_ecm.c opts = container_of(f->fi, struct f_ecm_opts, func_inst); opts 900 drivers/usb/gadget/function/f_ecm.c mutex_lock(&opts->lock); opts 901 drivers/usb/gadget/function/f_ecm.c opts->refcnt--; opts 902 drivers/usb/gadget/function/f_ecm.c mutex_unlock(&opts->lock); opts 925 drivers/usb/gadget/function/f_ecm.c struct f_ecm_opts *opts; opts 933 drivers/usb/gadget/function/f_ecm.c opts = container_of(fi, struct f_ecm_opts, func_inst); opts 934 drivers/usb/gadget/function/f_ecm.c mutex_lock(&opts->lock); opts 935 drivers/usb/gadget/function/f_ecm.c opts->refcnt++; opts 938 drivers/usb/gadget/function/f_ecm.c status = gether_get_host_addr_cdc(opts->net, ecm->ethaddr, opts 942 drivers/usb/gadget/function/f_ecm.c mutex_unlock(&opts->lock); opts 946 drivers/usb/gadget/function/f_ecm.c ecm->port.ioport = netdev_priv(opts->net); opts 947 drivers/usb/gadget/function/f_ecm.c mutex_unlock(&opts->lock); opts 561 drivers/usb/gadget/function/f_eem.c struct f_eem_opts *opts; opts 563 drivers/usb/gadget/function/f_eem.c opts = container_of(f, struct f_eem_opts, func_inst); opts 564 drivers/usb/gadget/function/f_eem.c if (opts->bound) opts 565 drivers/usb/gadget/function/f_eem.c gether_cleanup(netdev_priv(opts->net)); opts 567 drivers/usb/gadget/function/f_eem.c free_netdev(opts->net); opts 568 drivers/usb/gadget/function/f_eem.c kfree(opts); opts 573 drivers/usb/gadget/function/f_eem.c struct f_eem_opts *opts; opts 575 drivers/usb/gadget/function/f_eem.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 576 drivers/usb/gadget/function/f_eem.c if (!opts) opts 578 drivers/usb/gadget/function/f_eem.c mutex_init(&opts->lock); opts 579 drivers/usb/gadget/function/f_eem.c opts->func_inst.free_func_inst = eem_free_inst; opts 580 drivers/usb/gadget/function/f_eem.c opts->net = gether_setup_default(); opts 581 drivers/usb/gadget/function/f_eem.c if (IS_ERR(opts->net)) { opts 582 drivers/usb/gadget/function/f_eem.c struct net_device *net = opts->net; opts 583 drivers/usb/gadget/function/f_eem.c kfree(opts); opts 587 drivers/usb/gadget/function/f_eem.c config_group_init_type_name(&opts->func_inst.group, "", &eem_func_type); opts 589 drivers/usb/gadget/function/f_eem.c return &opts->func_inst; opts 595 drivers/usb/gadget/function/f_eem.c struct f_eem_opts *opts; opts 598 drivers/usb/gadget/function/f_eem.c opts = container_of(f->fi, struct f_eem_opts, func_inst); opts 600 drivers/usb/gadget/function/f_eem.c mutex_lock(&opts->lock); opts 601 drivers/usb/gadget/function/f_eem.c opts->refcnt--; opts 602 drivers/usb/gadget/function/f_eem.c mutex_unlock(&opts->lock); opts 615 drivers/usb/gadget/function/f_eem.c struct f_eem_opts *opts; opts 622 drivers/usb/gadget/function/f_eem.c opts = container_of(fi, struct f_eem_opts, func_inst); opts 623 drivers/usb/gadget/function/f_eem.c mutex_lock(&opts->lock); opts 624 drivers/usb/gadget/function/f_eem.c opts->refcnt++; opts 626 drivers/usb/gadget/function/f_eem.c eem->port.ioport = netdev_priv(opts->net); opts 627 drivers/usb/gadget/function/f_eem.c mutex_unlock(&opts->lock); opts 3500 drivers/usb/gadget/function/f_fs.c struct f_fs_opts *opts = to_ffs_opts(item); opts 3502 drivers/usb/gadget/function/f_fs.c usb_put_function_instance(&opts->func_inst); opts 3519 drivers/usb/gadget/function/f_fs.c struct f_fs_opts *opts; opts 3521 drivers/usb/gadget/function/f_fs.c opts = to_f_fs_opts(f); opts 3523 drivers/usb/gadget/function/f_fs.c _ffs_free_dev(opts->dev); opts 3525 drivers/usb/gadget/function/f_fs.c kfree(opts); opts 3537 drivers/usb/gadget/function/f_fs.c struct f_fs_opts *opts; opts 3540 drivers/usb/gadget/function/f_fs.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 3541 drivers/usb/gadget/function/f_fs.c if (!opts) opts 3544 drivers/usb/gadget/function/f_fs.c opts->func_inst.set_inst_name = ffs_set_inst_name; opts 3545 drivers/usb/gadget/function/f_fs.c opts->func_inst.free_func_inst = ffs_free_inst; opts 3550 drivers/usb/gadget/function/f_fs.c kfree(opts); opts 3553 drivers/usb/gadget/function/f_fs.c opts->dev = dev; opts 3554 drivers/usb/gadget/function/f_fs.c dev->opts = opts; opts 3556 drivers/usb/gadget/function/f_fs.c config_group_init_type_name(&opts->func_inst.group, "", opts 3558 drivers/usb/gadget/function/f_fs.c return &opts->func_inst; opts 3571 drivers/usb/gadget/function/f_fs.c struct f_fs_opts *opts = opts 3583 drivers/usb/gadget/function/f_fs.c if (!--opts->refcnt) opts 3790 drivers/usb/gadget/function/f_fs.c struct f_fs_opts *opts; opts 3807 drivers/usb/gadget/function/f_fs.c if (ffs_obj->opts) opts 3808 drivers/usb/gadget/function/f_fs.c opts = ffs_obj->opts; opts 3812 drivers/usb/gadget/function/f_fs.c if (opts->no_configfs || !opts->func_inst.group.cg_item.ci_parent opts 3813 drivers/usb/gadget/function/f_fs.c || !kref_read(&opts->func_inst.group.cg_item.ci_kref)) opts 3816 drivers/usb/gadget/function/f_fs.c ci = opts->func_inst.group.cg_item.ci_parent->ci_parent; opts 871 drivers/usb/gadget/function/f_hid.c struct f_hid_opts *opts = to_f_hid_opts(item); opts 873 drivers/usb/gadget/function/f_hid.c usb_put_function_instance(&opts->func_inst); opts 883 drivers/usb/gadget/function/f_hid.c struct f_hid_opts *opts = to_f_hid_opts(item); \ opts 886 drivers/usb/gadget/function/f_hid.c mutex_lock(&opts->lock); \ opts 887 drivers/usb/gadget/function/f_hid.c result = sprintf(page, "%d\n", opts->name); \ opts 888 drivers/usb/gadget/function/f_hid.c mutex_unlock(&opts->lock); \ opts 896 drivers/usb/gadget/function/f_hid.c struct f_hid_opts *opts = to_f_hid_opts(item); \ opts 900 drivers/usb/gadget/function/f_hid.c mutex_lock(&opts->lock); \ opts 901 drivers/usb/gadget/function/f_hid.c if (opts->refcnt) { \ opts 914 drivers/usb/gadget/function/f_hid.c opts->name = num; \ opts 918 drivers/usb/gadget/function/f_hid.c mutex_unlock(&opts->lock); \ opts 930 drivers/usb/gadget/function/f_hid.c struct f_hid_opts *opts = to_f_hid_opts(item); opts 933 drivers/usb/gadget/function/f_hid.c mutex_lock(&opts->lock); opts 934 drivers/usb/gadget/function/f_hid.c result = opts->report_desc_length; opts 935 drivers/usb/gadget/function/f_hid.c memcpy(page, opts->report_desc, opts->report_desc_length); opts 936 drivers/usb/gadget/function/f_hid.c mutex_unlock(&opts->lock); opts 944 drivers/usb/gadget/function/f_hid.c struct f_hid_opts *opts = to_f_hid_opts(item); opts 948 drivers/usb/gadget/function/f_hid.c mutex_lock(&opts->lock); opts 950 drivers/usb/gadget/function/f_hid.c if (opts->refcnt) opts 961 drivers/usb/gadget/function/f_hid.c kfree(opts->report_desc); opts 962 drivers/usb/gadget/function/f_hid.c opts->report_desc = d; opts 963 drivers/usb/gadget/function/f_hid.c opts->report_desc_length = len; opts 964 drivers/usb/gadget/function/f_hid.c opts->report_desc_alloc = true; opts 967 drivers/usb/gadget/function/f_hid.c mutex_unlock(&opts->lock); opts 975 drivers/usb/gadget/function/f_hid.c struct f_hid_opts *opts = to_f_hid_opts(item); opts 977 drivers/usb/gadget/function/f_hid.c return sprintf(page, "%d:%d\n", major, opts->minor); opts 1004 drivers/usb/gadget/function/f_hid.c struct f_hid_opts *opts; opts 1006 drivers/usb/gadget/function/f_hid.c opts = container_of(f, struct f_hid_opts, func_inst); opts 1010 drivers/usb/gadget/function/f_hid.c hidg_put_minor(opts->minor); opts 1016 drivers/usb/gadget/function/f_hid.c if (opts->report_desc_alloc) opts 1017 drivers/usb/gadget/function/f_hid.c kfree(opts->report_desc); opts 1019 drivers/usb/gadget/function/f_hid.c kfree(opts); opts 1024 drivers/usb/gadget/function/f_hid.c struct f_hid_opts *opts; opts 1028 drivers/usb/gadget/function/f_hid.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 1029 drivers/usb/gadget/function/f_hid.c if (!opts) opts 1031 drivers/usb/gadget/function/f_hid.c mutex_init(&opts->lock); opts 1032 drivers/usb/gadget/function/f_hid.c opts->func_inst.free_func_inst = hidg_free_inst; opts 1033 drivers/usb/gadget/function/f_hid.c ret = &opts->func_inst; opts 1041 drivers/usb/gadget/function/f_hid.c kfree(opts); opts 1046 drivers/usb/gadget/function/f_hid.c opts->minor = hidg_get_minor(); opts 1047 drivers/usb/gadget/function/f_hid.c if (opts->minor < 0) { opts 1048 drivers/usb/gadget/function/f_hid.c ret = ERR_PTR(opts->minor); opts 1049 drivers/usb/gadget/function/f_hid.c kfree(opts); opts 1054 drivers/usb/gadget/function/f_hid.c config_group_init_type_name(&opts->func_inst.group, "", &hid_func_type); opts 1064 drivers/usb/gadget/function/f_hid.c struct f_hid_opts *opts; opts 1067 drivers/usb/gadget/function/f_hid.c opts = container_of(f->fi, struct f_hid_opts, func_inst); opts 1070 drivers/usb/gadget/function/f_hid.c mutex_lock(&opts->lock); opts 1071 drivers/usb/gadget/function/f_hid.c --opts->refcnt; opts 1072 drivers/usb/gadget/function/f_hid.c mutex_unlock(&opts->lock); opts 1088 drivers/usb/gadget/function/f_hid.c struct f_hid_opts *opts; opts 1095 drivers/usb/gadget/function/f_hid.c opts = container_of(fi, struct f_hid_opts, func_inst); opts 1097 drivers/usb/gadget/function/f_hid.c mutex_lock(&opts->lock); opts 1098 drivers/usb/gadget/function/f_hid.c ++opts->refcnt; opts 1100 drivers/usb/gadget/function/f_hid.c hidg->minor = opts->minor; opts 1101 drivers/usb/gadget/function/f_hid.c hidg->bInterfaceSubClass = opts->subclass; opts 1102 drivers/usb/gadget/function/f_hid.c hidg->bInterfaceProtocol = opts->protocol; opts 1103 drivers/usb/gadget/function/f_hid.c hidg->report_length = opts->report_length; opts 1104 drivers/usb/gadget/function/f_hid.c hidg->report_desc_length = opts->report_desc_length; opts 1105 drivers/usb/gadget/function/f_hid.c if (opts->report_desc) { opts 1106 drivers/usb/gadget/function/f_hid.c hidg->report_desc = kmemdup(opts->report_desc, opts 1107 drivers/usb/gadget/function/f_hid.c opts->report_desc_length, opts 1111 drivers/usb/gadget/function/f_hid.c mutex_unlock(&opts->lock); opts 1116 drivers/usb/gadget/function/f_hid.c mutex_unlock(&opts->lock); opts 223 drivers/usb/gadget/function/f_loopback.c struct f_lb_opts *opts; opts 225 drivers/usb/gadget/function/f_loopback.c opts = container_of(f->fi, struct f_lb_opts, func_inst); opts 227 drivers/usb/gadget/function/f_loopback.c mutex_lock(&opts->lock); opts 228 drivers/usb/gadget/function/f_loopback.c opts->refcnt--; opts 229 drivers/usb/gadget/function/f_loopback.c mutex_unlock(&opts->lock); opts 475 drivers/usb/gadget/function/f_loopback.c struct f_lb_opts *opts = to_f_lb_opts(item); opts 478 drivers/usb/gadget/function/f_loopback.c mutex_lock(&opts->lock); opts 479 drivers/usb/gadget/function/f_loopback.c result = sprintf(page, "%d\n", opts->qlen); opts 480 drivers/usb/gadget/function/f_loopback.c mutex_unlock(&opts->lock); opts 488 drivers/usb/gadget/function/f_loopback.c struct f_lb_opts *opts = to_f_lb_opts(item); opts 492 drivers/usb/gadget/function/f_loopback.c mutex_lock(&opts->lock); opts 493 drivers/usb/gadget/function/f_loopback.c if (opts->refcnt) { opts 502 drivers/usb/gadget/function/f_loopback.c opts->qlen = num; opts 505 drivers/usb/gadget/function/f_loopback.c mutex_unlock(&opts->lock); opts 513 drivers/usb/gadget/function/f_loopback.c struct f_lb_opts *opts = to_f_lb_opts(item); opts 516 drivers/usb/gadget/function/f_loopback.c mutex_lock(&opts->lock); opts 517 drivers/usb/gadget/function/f_loopback.c result = sprintf(page, "%d\n", opts->bulk_buflen); opts 518 drivers/usb/gadget/function/f_loopback.c mutex_unlock(&opts->lock); opts 526 drivers/usb/gadget/function/f_loopback.c struct f_lb_opts *opts = to_f_lb_opts(item); opts 530 drivers/usb/gadget/function/f_loopback.c mutex_lock(&opts->lock); opts 531 drivers/usb/gadget/function/f_loopback.c if (opts->refcnt) { opts 540 drivers/usb/gadget/function/f_loopback.c opts->bulk_buflen = num; opts 543 drivers/usb/gadget/function/f_loopback.c mutex_unlock(&opts->lock); opts 2903 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *opts; opts 2912 drivers/usb/gadget/function/f_mass_storage.c opts = fsg_opts_from_func_inst(f->fi); opts 2913 drivers/usb/gadget/function/f_mass_storage.c if (!opts->no_configfs) { opts 3034 drivers/usb/gadget/function/f_mass_storage.c struct fsg_lun_opts *opts = to_fsg_lun_opts(item); opts 3035 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); opts 3037 drivers/usb/gadget/function/f_mass_storage.c return fsg_show_file(opts->lun, &fsg_opts->common->filesem, page); opts 3043 drivers/usb/gadget/function/f_mass_storage.c struct fsg_lun_opts *opts = to_fsg_lun_opts(item); opts 3044 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); opts 3046 drivers/usb/gadget/function/f_mass_storage.c return fsg_store_file(opts->lun, &fsg_opts->common->filesem, page, len); opts 3059 drivers/usb/gadget/function/f_mass_storage.c struct fsg_lun_opts *opts = to_fsg_lun_opts(item); opts 3060 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); opts 3062 drivers/usb/gadget/function/f_mass_storage.c return fsg_store_ro(opts->lun, &fsg_opts->common->filesem, page, len); opts 3089 drivers/usb/gadget/function/f_mass_storage.c struct fsg_lun_opts *opts = to_fsg_lun_opts(item); opts 3090 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); opts 3092 drivers/usb/gadget/function/f_mass_storage.c return fsg_store_cdrom(opts->lun, &fsg_opts->common->filesem, page, opts 3144 drivers/usb/gadget/function/f_mass_storage.c struct fsg_lun_opts *opts; opts 3173 drivers/usb/gadget/function/f_mass_storage.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 3174 drivers/usb/gadget/function/f_mass_storage.c if (!opts) { opts 3185 drivers/usb/gadget/function/f_mass_storage.c kfree(opts); opts 3188 drivers/usb/gadget/function/f_mass_storage.c opts->lun = fsg_opts->common->luns[num]; opts 3189 drivers/usb/gadget/function/f_mass_storage.c opts->lun_id = num; opts 3192 drivers/usb/gadget/function/f_mass_storage.c config_group_init_type_name(&opts->group, name, &fsg_lun_type); opts 3194 drivers/usb/gadget/function/f_mass_storage.c return &opts->group; opts 3226 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *opts = to_fsg_opts(item); opts 3228 drivers/usb/gadget/function/f_mass_storage.c usb_put_function_instance(&opts->func_inst); opts 3237 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *opts = to_fsg_opts(item); opts 3240 drivers/usb/gadget/function/f_mass_storage.c mutex_lock(&opts->lock); opts 3241 drivers/usb/gadget/function/f_mass_storage.c result = sprintf(page, "%d", opts->common->can_stall); opts 3242 drivers/usb/gadget/function/f_mass_storage.c mutex_unlock(&opts->lock); opts 3250 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *opts = to_fsg_opts(item); opts 3254 drivers/usb/gadget/function/f_mass_storage.c mutex_lock(&opts->lock); opts 3256 drivers/usb/gadget/function/f_mass_storage.c if (opts->refcnt) { opts 3257 drivers/usb/gadget/function/f_mass_storage.c mutex_unlock(&opts->lock); opts 3263 drivers/usb/gadget/function/f_mass_storage.c opts->common->can_stall = stall; opts 3267 drivers/usb/gadget/function/f_mass_storage.c mutex_unlock(&opts->lock); opts 3277 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *opts = to_fsg_opts(item); opts 3280 drivers/usb/gadget/function/f_mass_storage.c mutex_lock(&opts->lock); opts 3281 drivers/usb/gadget/function/f_mass_storage.c result = sprintf(page, "%d", opts->common->fsg_num_buffers); opts 3282 drivers/usb/gadget/function/f_mass_storage.c mutex_unlock(&opts->lock); opts 3290 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *opts = to_fsg_opts(item); opts 3294 drivers/usb/gadget/function/f_mass_storage.c mutex_lock(&opts->lock); opts 3295 drivers/usb/gadget/function/f_mass_storage.c if (opts->refcnt) { opts 3303 drivers/usb/gadget/function/f_mass_storage.c ret = fsg_common_set_num_buffers(opts->common, num); opts 3309 drivers/usb/gadget/function/f_mass_storage.c mutex_unlock(&opts->lock); opts 3338 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *opts; opts 3340 drivers/usb/gadget/function/f_mass_storage.c opts = fsg_opts_from_func_inst(fi); opts 3341 drivers/usb/gadget/function/f_mass_storage.c fsg_common_release(opts->common); opts 3342 drivers/usb/gadget/function/f_mass_storage.c kfree(opts); opts 3347 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *opts; opts 3351 drivers/usb/gadget/function/f_mass_storage.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 3352 drivers/usb/gadget/function/f_mass_storage.c if (!opts) opts 3354 drivers/usb/gadget/function/f_mass_storage.c mutex_init(&opts->lock); opts 3355 drivers/usb/gadget/function/f_mass_storage.c opts->func_inst.free_func_inst = fsg_free_inst; opts 3356 drivers/usb/gadget/function/f_mass_storage.c opts->common = fsg_common_setup(opts->common); opts 3357 drivers/usb/gadget/function/f_mass_storage.c if (IS_ERR(opts->common)) { opts 3358 drivers/usb/gadget/function/f_mass_storage.c rc = PTR_ERR(opts->common); opts 3362 drivers/usb/gadget/function/f_mass_storage.c rc = fsg_common_set_num_buffers(opts->common, opts 3371 drivers/usb/gadget/function/f_mass_storage.c rc = fsg_common_create_lun(opts->common, &config, 0, "lun.0", opts 3372 drivers/usb/gadget/function/f_mass_storage.c (const char **)&opts->func_inst.group.cg_item.ci_name); opts 3376 drivers/usb/gadget/function/f_mass_storage.c opts->lun0.lun = opts->common->luns[0]; opts 3377 drivers/usb/gadget/function/f_mass_storage.c opts->lun0.lun_id = 0; opts 3379 drivers/usb/gadget/function/f_mass_storage.c config_group_init_type_name(&opts->func_inst.group, "", &fsg_func_type); opts 3381 drivers/usb/gadget/function/f_mass_storage.c config_group_init_type_name(&opts->lun0.group, "lun.0", &fsg_lun_type); opts 3382 drivers/usb/gadget/function/f_mass_storage.c configfs_add_default_group(&opts->lun0.group, &opts->func_inst.group); opts 3384 drivers/usb/gadget/function/f_mass_storage.c return &opts->func_inst; opts 3387 drivers/usb/gadget/function/f_mass_storage.c fsg_common_free_buffers(opts->common); opts 3389 drivers/usb/gadget/function/f_mass_storage.c kfree(opts->common); opts 3391 drivers/usb/gadget/function/f_mass_storage.c kfree(opts); opts 3398 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *opts; opts 3401 drivers/usb/gadget/function/f_mass_storage.c opts = container_of(f->fi, struct fsg_opts, func_inst); opts 3403 drivers/usb/gadget/function/f_mass_storage.c mutex_lock(&opts->lock); opts 3404 drivers/usb/gadget/function/f_mass_storage.c opts->refcnt--; opts 3405 drivers/usb/gadget/function/f_mass_storage.c mutex_unlock(&opts->lock); opts 3412 drivers/usb/gadget/function/f_mass_storage.c struct fsg_opts *opts = fsg_opts_from_func_inst(fi); opts 3413 drivers/usb/gadget/function/f_mass_storage.c struct fsg_common *common = opts->common; opts 3420 drivers/usb/gadget/function/f_mass_storage.c mutex_lock(&opts->lock); opts 3421 drivers/usb/gadget/function/f_mass_storage.c opts->refcnt++; opts 3422 drivers/usb/gadget/function/f_mass_storage.c mutex_unlock(&opts->lock); opts 1076 drivers/usb/gadget/function/f_midi.c struct f_midi_opts *opts = to_f_midi_opts(item); opts 1078 drivers/usb/gadget/function/f_midi.c usb_put_function_instance(&opts->func_inst); opts 1088 drivers/usb/gadget/function/f_midi.c struct f_midi_opts *opts = to_f_midi_opts(item); \ opts 1091 drivers/usb/gadget/function/f_midi.c mutex_lock(&opts->lock); \ opts 1092 drivers/usb/gadget/function/f_midi.c result = sprintf(page, "%d\n", opts->name); \ opts 1093 drivers/usb/gadget/function/f_midi.c mutex_unlock(&opts->lock); \ opts 1101 drivers/usb/gadget/function/f_midi.c struct f_midi_opts *opts = to_f_midi_opts(item); \ opts 1105 drivers/usb/gadget/function/f_midi.c mutex_lock(&opts->lock); \ opts 1106 drivers/usb/gadget/function/f_midi.c if (opts->refcnt > 1) { \ opts 1119 drivers/usb/gadget/function/f_midi.c opts->name = num; \ opts 1123 drivers/usb/gadget/function/f_midi.c mutex_unlock(&opts->lock); \ opts 1137 drivers/usb/gadget/function/f_midi.c struct f_midi_opts *opts = to_f_midi_opts(item); opts 1140 drivers/usb/gadget/function/f_midi.c mutex_lock(&opts->lock); opts 1141 drivers/usb/gadget/function/f_midi.c if (opts->id) { opts 1142 drivers/usb/gadget/function/f_midi.c result = strlcpy(page, opts->id, PAGE_SIZE); opts 1148 drivers/usb/gadget/function/f_midi.c mutex_unlock(&opts->lock); opts 1156 drivers/usb/gadget/function/f_midi.c struct f_midi_opts *opts = to_f_midi_opts(item); opts 1160 drivers/usb/gadget/function/f_midi.c mutex_lock(&opts->lock); opts 1161 drivers/usb/gadget/function/f_midi.c if (opts->refcnt > 1) { opts 1171 drivers/usb/gadget/function/f_midi.c if (opts->id_allocated) opts 1172 drivers/usb/gadget/function/f_midi.c kfree(opts->id); opts 1173 drivers/usb/gadget/function/f_midi.c opts->id = c; opts 1174 drivers/usb/gadget/function/f_midi.c opts->id_allocated = true; opts 1177 drivers/usb/gadget/function/f_midi.c mutex_unlock(&opts->lock); opts 1201 drivers/usb/gadget/function/f_midi.c struct f_midi_opts *opts; opts 1204 drivers/usb/gadget/function/f_midi.c opts = container_of(f, struct f_midi_opts, func_inst); opts 1206 drivers/usb/gadget/function/f_midi.c mutex_lock(&opts->lock); opts 1207 drivers/usb/gadget/function/f_midi.c if (!--opts->refcnt) { opts 1210 drivers/usb/gadget/function/f_midi.c mutex_unlock(&opts->lock); opts 1213 drivers/usb/gadget/function/f_midi.c if (opts->id_allocated) opts 1214 drivers/usb/gadget/function/f_midi.c kfree(opts->id); opts 1215 drivers/usb/gadget/function/f_midi.c kfree(opts); opts 1221 drivers/usb/gadget/function/f_midi.c struct f_midi_opts *opts; opts 1223 drivers/usb/gadget/function/f_midi.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 1224 drivers/usb/gadget/function/f_midi.c if (!opts) opts 1227 drivers/usb/gadget/function/f_midi.c mutex_init(&opts->lock); opts 1228 drivers/usb/gadget/function/f_midi.c opts->func_inst.free_func_inst = f_midi_free_inst; opts 1229 drivers/usb/gadget/function/f_midi.c opts->index = SNDRV_DEFAULT_IDX1; opts 1230 drivers/usb/gadget/function/f_midi.c opts->id = SNDRV_DEFAULT_STR1; opts 1231 drivers/usb/gadget/function/f_midi.c opts->buflen = 512; opts 1232 drivers/usb/gadget/function/f_midi.c opts->qlen = 32; opts 1233 drivers/usb/gadget/function/f_midi.c opts->in_ports = 1; opts 1234 drivers/usb/gadget/function/f_midi.c opts->out_ports = 1; opts 1235 drivers/usb/gadget/function/f_midi.c opts->refcnt = 1; opts 1237 drivers/usb/gadget/function/f_midi.c config_group_init_type_name(&opts->func_inst.group, "", opts 1240 drivers/usb/gadget/function/f_midi.c return &opts->func_inst; opts 1246 drivers/usb/gadget/function/f_midi.c struct f_midi_opts *opts; opts 1250 drivers/usb/gadget/function/f_midi.c opts = container_of(f->fi, struct f_midi_opts, func_inst); opts 1251 drivers/usb/gadget/function/f_midi.c mutex_lock(&opts->lock); opts 1258 drivers/usb/gadget/function/f_midi.c mutex_unlock(&opts->lock); opts 1261 drivers/usb/gadget/function/f_midi.c f_midi_free_inst(&opts->func_inst); opts 1291 drivers/usb/gadget/function/f_midi.c struct f_midi_opts *opts; opts 1294 drivers/usb/gadget/function/f_midi.c opts = container_of(fi, struct f_midi_opts, func_inst); opts 1296 drivers/usb/gadget/function/f_midi.c mutex_lock(&opts->lock); opts 1298 drivers/usb/gadget/function/f_midi.c if (opts->in_ports > MAX_PORTS || opts->out_ports > MAX_PORTS) { opts 1304 drivers/usb/gadget/function/f_midi.c midi = kzalloc(struct_size(midi, in_ports_array, opts->in_ports), opts 1311 drivers/usb/gadget/function/f_midi.c for (i = 0; i < opts->in_ports; i++) opts 1315 drivers/usb/gadget/function/f_midi.c midi->id = kstrdup(opts->id, GFP_KERNEL); opts 1316 drivers/usb/gadget/function/f_midi.c if (opts->id && !midi->id) { opts 1320 drivers/usb/gadget/function/f_midi.c midi->in_ports = opts->in_ports; opts 1321 drivers/usb/gadget/function/f_midi.c midi->out_ports = opts->out_ports; opts 1322 drivers/usb/gadget/function/f_midi.c midi->index = opts->index; opts 1323 drivers/usb/gadget/function/f_midi.c midi->buflen = opts->buflen; opts 1324 drivers/usb/gadget/function/f_midi.c midi->qlen = opts->qlen; opts 1334 drivers/usb/gadget/function/f_midi.c ++opts->refcnt; opts 1335 drivers/usb/gadget/function/f_midi.c mutex_unlock(&opts->lock); opts 1347 drivers/usb/gadget/function/f_midi.c mutex_unlock(&opts->lock); opts 964 drivers/usb/gadget/function/f_ncm.c const struct ndp_parser_opts *opts = ncm->parser_opts; opts 966 drivers/usb/gadget/function/f_ncm.c const int dgram_idx_len = 2 * 2 * opts->dgram_item_len; opts 980 drivers/usb/gadget/function/f_ncm.c put_ncm(&ntb_iter, opts->block_length, new_len); opts 981 drivers/usb/gadget/function/f_ncm.c put_ncm(&ntb_iter, opts->ndp_index, ndp_index); opts 984 drivers/usb/gadget/function/f_ncm.c new_len = opts->ndp_size + opts 1024 drivers/usb/gadget/function/f_ncm.c const struct ndp_parser_opts *opts = ncm->parser_opts; opts 1028 drivers/usb/gadget/function/f_ncm.c const int dgram_idx_len = 2 * 2 * opts->dgram_item_len; opts 1063 drivers/usb/gadget/function/f_ncm.c ncb_len = opts->nth_size; opts 1075 drivers/usb/gadget/function/f_ncm.c put_unaligned_le32(opts->nth_sign, ntb_data); opts 1078 drivers/usb/gadget/function/f_ncm.c put_unaligned_le16(opts->nth_size, ntb_data++); opts 1084 drivers/usb/gadget/function/f_ncm.c ncm->skb_tx_ndp = alloc_skb((int)(opts->ndp_size opts 1085 drivers/usb/gadget/function/f_ncm.c + opts->dpe_size opts 1092 drivers/usb/gadget/function/f_ncm.c ntb_ndp = skb_put(ncm->skb_tx_ndp, opts->ndp_size); opts 1116 drivers/usb/gadget/function/f_ncm.c put_ncm(&ntb_ndp, opts->dgram_item_len, ncb_len); opts 1118 drivers/usb/gadget/function/f_ncm.c put_ncm(&ntb_ndp, opts->dgram_item_len, skb->len); opts 1187 drivers/usb/gadget/function/f_ncm.c const struct ndp_parser_opts *opts = ncm->parser_opts; opts 1192 drivers/usb/gadget/function/f_ncm.c if (get_unaligned_le32(tmp) != opts->nth_sign) { opts 1202 drivers/usb/gadget/function/f_ncm.c if (get_unaligned_le16(tmp++) != opts->nth_size) { opts 1209 drivers/usb/gadget/function/f_ncm.c if (get_ncm(&tmp, opts->block_length) > max_size) { opts 1214 drivers/usb/gadget/function/f_ncm.c ndp_index = get_ncm(&tmp, opts->ndp_index); opts 1220 drivers/usb/gadget/function/f_ncm.c (ndp_index < opts->nth_size)) { opts 1242 drivers/usb/gadget/function/f_ncm.c if ((ndp_len < opts->ndp_size opts 1243 drivers/usb/gadget/function/f_ncm.c + 2 * 2 * (opts->dgram_item_len * 2)) opts 1244 drivers/usb/gadget/function/f_ncm.c || (ndp_len % opts->ndplen_align != 0)) { opts 1249 drivers/usb/gadget/function/f_ncm.c tmp += opts->reserved1; opts 1251 drivers/usb/gadget/function/f_ncm.c ndp_index = get_ncm(&tmp, opts->next_ndp_index); opts 1252 drivers/usb/gadget/function/f_ncm.c tmp += opts->reserved2; opts 1254 drivers/usb/gadget/function/f_ncm.c ndp_len -= opts->ndp_size; opts 1255 drivers/usb/gadget/function/f_ncm.c index2 = get_ncm(&tmp, opts->dgram_item_len); opts 1256 drivers/usb/gadget/function/f_ncm.c dg_len2 = get_ncm(&tmp, opts->dgram_item_len); opts 1283 drivers/usb/gadget/function/f_ncm.c index2 = get_ncm(&tmp, opts->dgram_item_len); opts 1284 drivers/usb/gadget/function/f_ncm.c dg_len2 = get_ncm(&tmp, opts->dgram_item_len); opts 1299 drivers/usb/gadget/function/f_ncm.c ndp_len -= 2 * (opts->dgram_item_len * 2); opts 1305 drivers/usb/gadget/function/f_ncm.c } while (ndp_len > 2 * (opts->dgram_item_len * 2)); opts 1580 drivers/usb/gadget/function/f_ncm.c struct f_ncm_opts *opts; opts 1582 drivers/usb/gadget/function/f_ncm.c opts = container_of(f, struct f_ncm_opts, func_inst); opts 1583 drivers/usb/gadget/function/f_ncm.c if (opts->bound) opts 1584 drivers/usb/gadget/function/f_ncm.c gether_cleanup(netdev_priv(opts->net)); opts 1586 drivers/usb/gadget/function/f_ncm.c free_netdev(opts->net); opts 1587 drivers/usb/gadget/function/f_ncm.c kfree(opts->ncm_interf_group); opts 1588 drivers/usb/gadget/function/f_ncm.c kfree(opts); opts 1593 drivers/usb/gadget/function/f_ncm.c struct f_ncm_opts *opts; opts 1598 drivers/usb/gadget/function/f_ncm.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 1599 drivers/usb/gadget/function/f_ncm.c if (!opts) opts 1601 drivers/usb/gadget/function/f_ncm.c opts->ncm_os_desc.ext_compat_id = opts->ncm_ext_compat_id; opts 1603 drivers/usb/gadget/function/f_ncm.c mutex_init(&opts->lock); opts 1604 drivers/usb/gadget/function/f_ncm.c opts->func_inst.free_func_inst = ncm_free_inst; opts 1605 drivers/usb/gadget/function/f_ncm.c opts->net = gether_setup_default(); opts 1606 drivers/usb/gadget/function/f_ncm.c if (IS_ERR(opts->net)) { opts 1607 drivers/usb/gadget/function/f_ncm.c struct net_device *net = opts->net; opts 1608 drivers/usb/gadget/function/f_ncm.c kfree(opts); opts 1611 drivers/usb/gadget/function/f_ncm.c INIT_LIST_HEAD(&opts->ncm_os_desc.ext_prop); opts 1613 drivers/usb/gadget/function/f_ncm.c descs[0] = &opts->ncm_os_desc; opts 1616 drivers/usb/gadget/function/f_ncm.c config_group_init_type_name(&opts->func_inst.group, "", &ncm_func_type); opts 1618 drivers/usb/gadget/function/f_ncm.c usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, opts 1621 drivers/usb/gadget/function/f_ncm.c ncm_free_inst(&opts->func_inst); opts 1624 drivers/usb/gadget/function/f_ncm.c opts->ncm_interf_group = ncm_interf_group; opts 1626 drivers/usb/gadget/function/f_ncm.c return &opts->func_inst; opts 1632 drivers/usb/gadget/function/f_ncm.c struct f_ncm_opts *opts; opts 1635 drivers/usb/gadget/function/f_ncm.c opts = container_of(f->fi, struct f_ncm_opts, func_inst); opts 1637 drivers/usb/gadget/function/f_ncm.c mutex_lock(&opts->lock); opts 1638 drivers/usb/gadget/function/f_ncm.c opts->refcnt--; opts 1639 drivers/usb/gadget/function/f_ncm.c mutex_unlock(&opts->lock); opts 1668 drivers/usb/gadget/function/f_ncm.c struct f_ncm_opts *opts; opts 1676 drivers/usb/gadget/function/f_ncm.c opts = container_of(fi, struct f_ncm_opts, func_inst); opts 1677 drivers/usb/gadget/function/f_ncm.c mutex_lock(&opts->lock); opts 1678 drivers/usb/gadget/function/f_ncm.c opts->refcnt++; opts 1681 drivers/usb/gadget/function/f_ncm.c status = gether_get_host_addr_cdc(opts->net, ncm->ethaddr, opts 1685 drivers/usb/gadget/function/f_ncm.c mutex_unlock(&opts->lock); opts 1692 drivers/usb/gadget/function/f_ncm.c ncm->port.ioport = netdev_priv(opts->net); opts 1693 drivers/usb/gadget/function/f_ncm.c mutex_unlock(&opts->lock); opts 389 drivers/usb/gadget/function/f_obex.c struct f_serial_opts *opts = to_f_serial_opts(item); opts 391 drivers/usb/gadget/function/f_obex.c usb_put_function_instance(&opts->func_inst); opts 418 drivers/usb/gadget/function/f_obex.c struct f_serial_opts *opts; opts 420 drivers/usb/gadget/function/f_obex.c opts = container_of(f, struct f_serial_opts, func_inst); opts 421 drivers/usb/gadget/function/f_obex.c gserial_free_line(opts->port_num); opts 422 drivers/usb/gadget/function/f_obex.c kfree(opts); opts 427 drivers/usb/gadget/function/f_obex.c struct f_serial_opts *opts; opts 430 drivers/usb/gadget/function/f_obex.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 431 drivers/usb/gadget/function/f_obex.c if (!opts) opts 434 drivers/usb/gadget/function/f_obex.c opts->func_inst.free_func_inst = obex_free_inst; opts 435 drivers/usb/gadget/function/f_obex.c ret = gserial_alloc_line(&opts->port_num); opts 437 drivers/usb/gadget/function/f_obex.c kfree(opts); opts 440 drivers/usb/gadget/function/f_obex.c config_group_init_type_name(&opts->func_inst.group, "", opts 443 drivers/usb/gadget/function/f_obex.c return &opts->func_inst; opts 462 drivers/usb/gadget/function/f_obex.c struct f_serial_opts *opts; opts 469 drivers/usb/gadget/function/f_obex.c opts = container_of(fi, struct f_serial_opts, func_inst); opts 471 drivers/usb/gadget/function/f_obex.c obex->port_num = opts->port_num; opts 580 drivers/usb/gadget/function/f_phonet.c struct f_phonet_opts *opts = to_f_phonet_opts(item); opts 582 drivers/usb/gadget/function/f_phonet.c usb_put_function_instance(&opts->func_inst); opts 609 drivers/usb/gadget/function/f_phonet.c struct f_phonet_opts *opts; opts 611 drivers/usb/gadget/function/f_phonet.c opts = container_of(f, struct f_phonet_opts, func_inst); opts 612 drivers/usb/gadget/function/f_phonet.c if (opts->bound) opts 613 drivers/usb/gadget/function/f_phonet.c gphonet_cleanup(opts->net); opts 615 drivers/usb/gadget/function/f_phonet.c free_netdev(opts->net); opts 616 drivers/usb/gadget/function/f_phonet.c kfree(opts); opts 621 drivers/usb/gadget/function/f_phonet.c struct f_phonet_opts *opts; opts 623 drivers/usb/gadget/function/f_phonet.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 624 drivers/usb/gadget/function/f_phonet.c if (!opts) opts 627 drivers/usb/gadget/function/f_phonet.c opts->func_inst.free_func_inst = phonet_free_inst; opts 628 drivers/usb/gadget/function/f_phonet.c opts->net = gphonet_setup_default(); opts 629 drivers/usb/gadget/function/f_phonet.c if (IS_ERR(opts->net)) { opts 630 drivers/usb/gadget/function/f_phonet.c struct net_device *net = opts->net; opts 631 drivers/usb/gadget/function/f_phonet.c kfree(opts); opts 635 drivers/usb/gadget/function/f_phonet.c config_group_init_type_name(&opts->func_inst.group, "", opts 638 drivers/usb/gadget/function/f_phonet.c return &opts->func_inst; opts 667 drivers/usb/gadget/function/f_phonet.c struct f_phonet_opts *opts; opts 675 drivers/usb/gadget/function/f_phonet.c opts = container_of(fi, struct f_phonet_opts, func_inst); opts 677 drivers/usb/gadget/function/f_phonet.c fp->dev = opts->net; opts 1153 drivers/usb/gadget/function/f_printer.c struct f_printer_opts *opts = to_f_printer_opts(item); opts 1155 drivers/usb/gadget/function/f_printer.c usb_put_function_instance(&opts->func_inst); opts 1165 drivers/usb/gadget/function/f_printer.c struct f_printer_opts *opts = to_f_printer_opts(item); opts 1168 drivers/usb/gadget/function/f_printer.c mutex_lock(&opts->lock); opts 1169 drivers/usb/gadget/function/f_printer.c if (!opts->pnp_string) opts 1172 drivers/usb/gadget/function/f_printer.c result = strlcpy(page, opts->pnp_string, PAGE_SIZE); opts 1181 drivers/usb/gadget/function/f_printer.c mutex_unlock(&opts->lock); opts 1189 drivers/usb/gadget/function/f_printer.c struct f_printer_opts *opts = to_f_printer_opts(item); opts 1193 drivers/usb/gadget/function/f_printer.c mutex_lock(&opts->lock); opts 1201 drivers/usb/gadget/function/f_printer.c if (opts->pnp_string_allocated) opts 1202 drivers/usb/gadget/function/f_printer.c kfree(opts->pnp_string); opts 1204 drivers/usb/gadget/function/f_printer.c opts->pnp_string_allocated = true; opts 1205 drivers/usb/gadget/function/f_printer.c opts->pnp_string = new_pnp; opts 1208 drivers/usb/gadget/function/f_printer.c mutex_unlock(&opts->lock); opts 1218 drivers/usb/gadget/function/f_printer.c struct f_printer_opts *opts = to_f_printer_opts(item); opts 1221 drivers/usb/gadget/function/f_printer.c mutex_lock(&opts->lock); opts 1222 drivers/usb/gadget/function/f_printer.c result = sprintf(page, "%d\n", opts->q_len); opts 1223 drivers/usb/gadget/function/f_printer.c mutex_unlock(&opts->lock); opts 1231 drivers/usb/gadget/function/f_printer.c struct f_printer_opts *opts = to_f_printer_opts(item); opts 1235 drivers/usb/gadget/function/f_printer.c mutex_lock(&opts->lock); opts 1236 drivers/usb/gadget/function/f_printer.c if (opts->refcnt) { opts 1245 drivers/usb/gadget/function/f_printer.c opts->q_len = (unsigned)num; opts 1248 drivers/usb/gadget/function/f_printer.c mutex_unlock(&opts->lock); opts 1289 drivers/usb/gadget/function/f_printer.c struct f_printer_opts *opts; opts 1291 drivers/usb/gadget/function/f_printer.c opts = container_of(f, struct f_printer_opts, func_inst); opts 1295 drivers/usb/gadget/function/f_printer.c gprinter_put_minor(opts->minor); opts 1301 drivers/usb/gadget/function/f_printer.c if (opts->pnp_string_allocated) opts 1302 drivers/usb/gadget/function/f_printer.c kfree(opts->pnp_string); opts 1303 drivers/usb/gadget/function/f_printer.c kfree(opts); opts 1308 drivers/usb/gadget/function/f_printer.c struct f_printer_opts *opts; opts 1312 drivers/usb/gadget/function/f_printer.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 1313 drivers/usb/gadget/function/f_printer.c if (!opts) opts 1316 drivers/usb/gadget/function/f_printer.c mutex_init(&opts->lock); opts 1317 drivers/usb/gadget/function/f_printer.c opts->func_inst.free_func_inst = gprinter_free_inst; opts 1318 drivers/usb/gadget/function/f_printer.c ret = &opts->func_inst; opts 1326 drivers/usb/gadget/function/f_printer.c kfree(opts); opts 1331 drivers/usb/gadget/function/f_printer.c opts->minor = gprinter_get_minor(); opts 1332 drivers/usb/gadget/function/f_printer.c if (opts->minor < 0) { opts 1333 drivers/usb/gadget/function/f_printer.c ret = ERR_PTR(opts->minor); opts 1334 drivers/usb/gadget/function/f_printer.c kfree(opts); opts 1339 drivers/usb/gadget/function/f_printer.c config_group_init_type_name(&opts->func_inst.group, "", opts 1350 drivers/usb/gadget/function/f_printer.c struct f_printer_opts *opts; opts 1352 drivers/usb/gadget/function/f_printer.c opts = container_of(f->fi, struct f_printer_opts, func_inst); opts 1354 drivers/usb/gadget/function/f_printer.c mutex_lock(&opts->lock); opts 1355 drivers/usb/gadget/function/f_printer.c --opts->refcnt; opts 1356 drivers/usb/gadget/function/f_printer.c mutex_unlock(&opts->lock); opts 1406 drivers/usb/gadget/function/f_printer.c struct f_printer_opts *opts; opts 1408 drivers/usb/gadget/function/f_printer.c opts = container_of(fi, struct f_printer_opts, func_inst); opts 1410 drivers/usb/gadget/function/f_printer.c mutex_lock(&opts->lock); opts 1411 drivers/usb/gadget/function/f_printer.c if (opts->minor >= minors) { opts 1412 drivers/usb/gadget/function/f_printer.c mutex_unlock(&opts->lock); opts 1418 drivers/usb/gadget/function/f_printer.c mutex_unlock(&opts->lock); opts 1422 drivers/usb/gadget/function/f_printer.c ++opts->refcnt; opts 1423 drivers/usb/gadget/function/f_printer.c dev->minor = opts->minor; opts 1424 drivers/usb/gadget/function/f_printer.c dev->pnp_string = opts->pnp_string; opts 1425 drivers/usb/gadget/function/f_printer.c dev->q_len = opts->q_len; opts 1426 drivers/usb/gadget/function/f_printer.c mutex_unlock(&opts->lock); opts 837 drivers/usb/gadget/function/f_rndis.c struct f_rndis_opts *opts; opts 839 drivers/usb/gadget/function/f_rndis.c opts = container_of(f, struct f_rndis_opts, func_inst); opts 840 drivers/usb/gadget/function/f_rndis.c if (opts->bound) opts 841 drivers/usb/gadget/function/f_rndis.c gether_cleanup(netdev_priv(opts->net)); opts 843 drivers/usb/gadget/function/f_rndis.c free_netdev(opts->net); opts 844 drivers/usb/gadget/function/f_rndis.c opts->borrowed_net = opts->bound = true; opts 845 drivers/usb/gadget/function/f_rndis.c opts->net = net; opts 898 drivers/usb/gadget/function/f_rndis.c struct f_rndis_opts *opts; opts 900 drivers/usb/gadget/function/f_rndis.c opts = container_of(f, struct f_rndis_opts, func_inst); opts 901 drivers/usb/gadget/function/f_rndis.c if (!opts->borrowed_net) { opts 902 drivers/usb/gadget/function/f_rndis.c if (opts->bound) opts 903 drivers/usb/gadget/function/f_rndis.c gether_cleanup(netdev_priv(opts->net)); opts 905 drivers/usb/gadget/function/f_rndis.c free_netdev(opts->net); opts 908 drivers/usb/gadget/function/f_rndis.c kfree(opts->rndis_interf_group); /* single VLA chunk */ opts 909 drivers/usb/gadget/function/f_rndis.c kfree(opts); opts 914 drivers/usb/gadget/function/f_rndis.c struct f_rndis_opts *opts; opts 919 drivers/usb/gadget/function/f_rndis.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 920 drivers/usb/gadget/function/f_rndis.c if (!opts) opts 922 drivers/usb/gadget/function/f_rndis.c opts->rndis_os_desc.ext_compat_id = opts->rndis_ext_compat_id; opts 924 drivers/usb/gadget/function/f_rndis.c mutex_init(&opts->lock); opts 925 drivers/usb/gadget/function/f_rndis.c opts->func_inst.free_func_inst = rndis_free_inst; opts 926 drivers/usb/gadget/function/f_rndis.c opts->net = gether_setup_default(); opts 927 drivers/usb/gadget/function/f_rndis.c if (IS_ERR(opts->net)) { opts 928 drivers/usb/gadget/function/f_rndis.c struct net_device *net = opts->net; opts 929 drivers/usb/gadget/function/f_rndis.c kfree(opts); opts 932 drivers/usb/gadget/function/f_rndis.c INIT_LIST_HEAD(&opts->rndis_os_desc.ext_prop); opts 934 drivers/usb/gadget/function/f_rndis.c opts->class = rndis_iad_descriptor.bFunctionClass; opts 935 drivers/usb/gadget/function/f_rndis.c opts->subclass = rndis_iad_descriptor.bFunctionSubClass; opts 936 drivers/usb/gadget/function/f_rndis.c opts->protocol = rndis_iad_descriptor.bFunctionProtocol; opts 938 drivers/usb/gadget/function/f_rndis.c descs[0] = &opts->rndis_os_desc; opts 940 drivers/usb/gadget/function/f_rndis.c config_group_init_type_name(&opts->func_inst.group, "", opts 943 drivers/usb/gadget/function/f_rndis.c usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs, opts 946 drivers/usb/gadget/function/f_rndis.c rndis_free_inst(&opts->func_inst); opts 949 drivers/usb/gadget/function/f_rndis.c opts->rndis_interf_group = rndis_interf_group; opts 951 drivers/usb/gadget/function/f_rndis.c return &opts->func_inst; opts 957 drivers/usb/gadget/function/f_rndis.c struct f_rndis_opts *opts; opts 961 drivers/usb/gadget/function/f_rndis.c opts = container_of(f->fi, struct f_rndis_opts, func_inst); opts 963 drivers/usb/gadget/function/f_rndis.c mutex_lock(&opts->lock); opts 964 drivers/usb/gadget/function/f_rndis.c opts->refcnt--; opts 965 drivers/usb/gadget/function/f_rndis.c mutex_unlock(&opts->lock); opts 983 drivers/usb/gadget/function/f_rndis.c struct f_rndis_opts *opts; opts 991 drivers/usb/gadget/function/f_rndis.c opts = container_of(fi, struct f_rndis_opts, func_inst); opts 992 drivers/usb/gadget/function/f_rndis.c mutex_lock(&opts->lock); opts 993 drivers/usb/gadget/function/f_rndis.c opts->refcnt++; opts 995 drivers/usb/gadget/function/f_rndis.c gether_get_host_addr_u8(opts->net, rndis->ethaddr); opts 996 drivers/usb/gadget/function/f_rndis.c rndis->vendorID = opts->vendor_id; opts 997 drivers/usb/gadget/function/f_rndis.c rndis->manufacturer = opts->manufacturer; opts 999 drivers/usb/gadget/function/f_rndis.c rndis->port.ioport = netdev_priv(opts->net); opts 1000 drivers/usb/gadget/function/f_rndis.c mutex_unlock(&opts->lock); opts 260 drivers/usb/gadget/function/f_serial.c struct f_serial_opts *opts = to_f_serial_opts(item); opts 262 drivers/usb/gadget/function/f_serial.c usb_put_function_instance(&opts->func_inst); opts 289 drivers/usb/gadget/function/f_serial.c struct f_serial_opts *opts; opts 291 drivers/usb/gadget/function/f_serial.c opts = container_of(f, struct f_serial_opts, func_inst); opts 292 drivers/usb/gadget/function/f_serial.c gserial_free_line(opts->port_num); opts 293 drivers/usb/gadget/function/f_serial.c kfree(opts); opts 298 drivers/usb/gadget/function/f_serial.c struct f_serial_opts *opts; opts 301 drivers/usb/gadget/function/f_serial.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 302 drivers/usb/gadget/function/f_serial.c if (!opts) opts 305 drivers/usb/gadget/function/f_serial.c opts->func_inst.free_func_inst = gser_free_inst; opts 306 drivers/usb/gadget/function/f_serial.c ret = gserial_alloc_line(&opts->port_num); opts 308 drivers/usb/gadget/function/f_serial.c kfree(opts); opts 311 drivers/usb/gadget/function/f_serial.c config_group_init_type_name(&opts->func_inst.group, "", opts 314 drivers/usb/gadget/function/f_serial.c return &opts->func_inst; opts 333 drivers/usb/gadget/function/f_serial.c struct f_serial_opts *opts; opts 340 drivers/usb/gadget/function/f_serial.c opts = container_of(fi, struct f_serial_opts, func_inst); opts 342 drivers/usb/gadget/function/f_serial.c gser->port_num = opts->port_num; opts 450 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts; opts 452 drivers/usb/gadget/function/f_sourcesink.c opts = container_of(f->fi, struct f_ss_opts, func_inst); opts 454 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 455 drivers/usb/gadget/function/f_sourcesink.c opts->refcnt--; opts 456 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 890 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 893 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 894 drivers/usb/gadget/function/f_sourcesink.c result = sprintf(page, "%u\n", opts->pattern); opts 895 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 903 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 907 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 908 drivers/usb/gadget/function/f_sourcesink.c if (opts->refcnt) { opts 922 drivers/usb/gadget/function/f_sourcesink.c opts->pattern = num; opts 925 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 933 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 936 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 937 drivers/usb/gadget/function/f_sourcesink.c result = sprintf(page, "%u\n", opts->isoc_interval); opts 938 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 946 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 950 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 951 drivers/usb/gadget/function/f_sourcesink.c if (opts->refcnt) { opts 965 drivers/usb/gadget/function/f_sourcesink.c opts->isoc_interval = num; opts 968 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 976 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 979 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 980 drivers/usb/gadget/function/f_sourcesink.c result = sprintf(page, "%u\n", opts->isoc_maxpacket); opts 981 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 989 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 993 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 994 drivers/usb/gadget/function/f_sourcesink.c if (opts->refcnt) { opts 1008 drivers/usb/gadget/function/f_sourcesink.c opts->isoc_maxpacket = num; opts 1011 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 1019 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 1022 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 1023 drivers/usb/gadget/function/f_sourcesink.c result = sprintf(page, "%u\n", opts->isoc_mult); opts 1024 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 1032 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 1036 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 1037 drivers/usb/gadget/function/f_sourcesink.c if (opts->refcnt) { opts 1051 drivers/usb/gadget/function/f_sourcesink.c opts->isoc_mult = num; opts 1054 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 1062 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 1065 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 1066 drivers/usb/gadget/function/f_sourcesink.c result = sprintf(page, "%u\n", opts->isoc_maxburst); opts 1067 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 1075 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 1079 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 1080 drivers/usb/gadget/function/f_sourcesink.c if (opts->refcnt) { opts 1094 drivers/usb/gadget/function/f_sourcesink.c opts->isoc_maxburst = num; opts 1097 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 1105 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 1108 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 1109 drivers/usb/gadget/function/f_sourcesink.c result = sprintf(page, "%u\n", opts->bulk_buflen); opts 1110 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 1118 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 1122 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 1123 drivers/usb/gadget/function/f_sourcesink.c if (opts->refcnt) { opts 1132 drivers/usb/gadget/function/f_sourcesink.c opts->bulk_buflen = num; opts 1135 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 1143 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 1146 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 1147 drivers/usb/gadget/function/f_sourcesink.c result = sprintf(page, "%u\n", opts->bulk_qlen); opts 1148 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 1156 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 1160 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 1161 drivers/usb/gadget/function/f_sourcesink.c if (opts->refcnt) { opts 1170 drivers/usb/gadget/function/f_sourcesink.c opts->bulk_qlen = num; opts 1173 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 1181 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 1184 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 1185 drivers/usb/gadget/function/f_sourcesink.c result = sprintf(page, "%u\n", opts->iso_qlen); opts 1186 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 1194 drivers/usb/gadget/function/f_sourcesink.c struct f_ss_opts *opts = to_f_ss_opts(item); opts 1198 drivers/usb/gadget/function/f_sourcesink.c mutex_lock(&opts->lock); opts 1199 drivers/usb/gadget/function/f_sourcesink.c if (opts->refcnt) { opts 1208 drivers/usb/gadget/function/f_sourcesink.c opts->iso_qlen = num; opts 1211 drivers/usb/gadget/function/f_sourcesink.c mutex_unlock(&opts->lock); opts 419 drivers/usb/gadget/function/f_subset.c struct f_gether_opts *opts; opts 421 drivers/usb/gadget/function/f_subset.c opts = container_of(f, struct f_gether_opts, func_inst); opts 422 drivers/usb/gadget/function/f_subset.c if (opts->bound) opts 423 drivers/usb/gadget/function/f_subset.c gether_cleanup(netdev_priv(opts->net)); opts 425 drivers/usb/gadget/function/f_subset.c free_netdev(opts->net); opts 426 drivers/usb/gadget/function/f_subset.c kfree(opts); opts 431 drivers/usb/gadget/function/f_subset.c struct f_gether_opts *opts; opts 433 drivers/usb/gadget/function/f_subset.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 434 drivers/usb/gadget/function/f_subset.c if (!opts) opts 436 drivers/usb/gadget/function/f_subset.c mutex_init(&opts->lock); opts 437 drivers/usb/gadget/function/f_subset.c opts->func_inst.free_func_inst = geth_free_inst; opts 438 drivers/usb/gadget/function/f_subset.c opts->net = gether_setup_default(); opts 439 drivers/usb/gadget/function/f_subset.c if (IS_ERR(opts->net)) { opts 440 drivers/usb/gadget/function/f_subset.c struct net_device *net = opts->net; opts 441 drivers/usb/gadget/function/f_subset.c kfree(opts); opts 445 drivers/usb/gadget/function/f_subset.c config_group_init_type_name(&opts->func_inst.group, "", opts 448 drivers/usb/gadget/function/f_subset.c return &opts->func_inst; opts 468 drivers/usb/gadget/function/f_subset.c struct f_gether_opts *opts; opts 476 drivers/usb/gadget/function/f_subset.c opts = container_of(fi, struct f_gether_opts, func_inst); opts 478 drivers/usb/gadget/function/f_subset.c mutex_lock(&opts->lock); opts 479 drivers/usb/gadget/function/f_subset.c opts->refcnt++; opts 481 drivers/usb/gadget/function/f_subset.c status = gether_get_host_addr_cdc(opts->net, geth->ethaddr, opts 485 drivers/usb/gadget/function/f_subset.c mutex_unlock(&opts->lock); opts 490 drivers/usb/gadget/function/f_subset.c geth->port.ioport = netdev_priv(opts->net); opts 491 drivers/usb/gadget/function/f_subset.c mutex_unlock(&opts->lock); opts 1342 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts; opts 1357 drivers/usb/gadget/function/f_tcm.c opts = container_of(tpg_instances[i].func_inst, struct f_tcm_opts, opts 1359 drivers/usb/gadget/function/f_tcm.c mutex_lock(&opts->dep_lock); opts 1360 drivers/usb/gadget/function/f_tcm.c if (!opts->ready) opts 1363 drivers/usb/gadget/function/f_tcm.c if (opts->has_dep) { opts 1364 drivers/usb/gadget/function/f_tcm.c if (!try_module_get(opts->dependent)) opts 1369 drivers/usb/gadget/function/f_tcm.c &opts->func_inst.group.cg_item); opts 1397 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&opts->dep_lock); opts 1406 drivers/usb/gadget/function/f_tcm.c if (opts->has_dep) opts 1407 drivers/usb/gadget/function/f_tcm.c module_put(opts->dependent); opts 1409 drivers/usb/gadget/function/f_tcm.c configfs_undepend_item_unlocked(&opts->func_inst.group.cg_item); opts 1411 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&opts->dep_lock); opts 1425 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts; opts 1437 drivers/usb/gadget/function/f_tcm.c opts = container_of(tpg_instances[i].func_inst, opts 1439 drivers/usb/gadget/function/f_tcm.c mutex_lock(&opts->dep_lock); opts 1440 drivers/usb/gadget/function/f_tcm.c if (opts->has_dep) opts 1441 drivers/usb/gadget/function/f_tcm.c module_put(opts->dependent); opts 1444 drivers/usb/gadget/function/f_tcm.c &opts->func_inst.group.cg_item); opts 1445 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&opts->dep_lock); opts 1993 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts; opts 1997 drivers/usb/gadget/function/f_tcm.c opts = container_of(f->fi, struct f_tcm_opts, func_inst); opts 1999 drivers/usb/gadget/function/f_tcm.c mutex_lock(&opts->dep_lock); opts 2000 drivers/usb/gadget/function/f_tcm.c if (!opts->can_attach) { opts 2001 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&opts->dep_lock); opts 2004 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&opts->dep_lock); opts 2145 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = to_f_tcm_opts(item); opts 2147 drivers/usb/gadget/function/f_tcm.c usb_put_function_instance(&opts->func_inst); opts 2161 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts; opts 2164 drivers/usb/gadget/function/f_tcm.c opts = container_of(f, struct f_tcm_opts, func_inst); opts 2174 drivers/usb/gadget/function/f_tcm.c kfree(opts); opts 2179 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = container_of(f, struct f_tcm_opts, func_inst); opts 2181 drivers/usb/gadget/function/f_tcm.c mutex_lock(&opts->dep_lock); opts 2182 drivers/usb/gadget/function/f_tcm.c opts->can_attach = true; opts 2183 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&opts->dep_lock); opts 2190 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = container_of(f, struct f_tcm_opts, func_inst); opts 2192 drivers/usb/gadget/function/f_tcm.c mutex_lock(&opts->dep_lock); opts 2193 drivers/usb/gadget/function/f_tcm.c unregister_gadget_item(opts-> opts 2195 drivers/usb/gadget/function/f_tcm.c opts->can_attach = false; opts 2196 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&opts->dep_lock); opts 2202 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = container_of(f, struct f_tcm_opts, func_inst); opts 2204 drivers/usb/gadget/function/f_tcm.c if (opts->tcm_register_callback) opts 2205 drivers/usb/gadget/function/f_tcm.c return opts->tcm_register_callback(f); opts 2213 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = container_of(f, struct f_tcm_opts, func_inst); opts 2215 drivers/usb/gadget/function/f_tcm.c if (opts->tcm_unregister_callback) opts 2216 drivers/usb/gadget/function/f_tcm.c opts->tcm_unregister_callback(f); opts 2221 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = container_of(f, struct f_tcm_opts, func_inst); opts 2225 drivers/usb/gadget/function/f_tcm.c mutex_lock(&opts->dep_lock); opts 2226 drivers/usb/gadget/function/f_tcm.c opts->ready = true; opts 2227 drivers/usb/gadget/function/f_tcm.c mutex_unlock(&opts->dep_lock); opts 2234 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts; opts 2238 drivers/usb/gadget/function/f_tcm.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 2239 drivers/usb/gadget/function/f_tcm.c if (!opts) opts 2249 drivers/usb/gadget/function/f_tcm.c kfree(opts); opts 2252 drivers/usb/gadget/function/f_tcm.c tpg_instances[i].func_inst = &opts->func_inst; opts 2255 drivers/usb/gadget/function/f_tcm.c mutex_init(&opts->dep_lock); opts 2256 drivers/usb/gadget/function/f_tcm.c opts->func_inst.set_inst_name = tcm_set_name; opts 2257 drivers/usb/gadget/function/f_tcm.c opts->func_inst.free_func_inst = tcm_free_inst; opts 2258 drivers/usb/gadget/function/f_tcm.c opts->tcm_register_callback = tcm_register_callback; opts 2259 drivers/usb/gadget/function/f_tcm.c opts->tcm_unregister_callback = tcm_unregister_callback; opts 2261 drivers/usb/gadget/function/f_tcm.c config_group_init_type_name(&opts->func_inst.group, "", opts 2264 drivers/usb/gadget/function/f_tcm.c return &opts->func_inst; opts 639 drivers/usb/gadget/function/f_uac1.c struct f_uac1_opts *opts = to_f_uac1_opts(item); opts 641 drivers/usb/gadget/function/f_uac1.c usb_put_function_instance(&opts->func_inst); opts 653 drivers/usb/gadget/function/f_uac1.c struct f_uac1_opts *opts = to_f_uac1_opts(item); \ opts 656 drivers/usb/gadget/function/f_uac1.c mutex_lock(&opts->lock); \ opts 657 drivers/usb/gadget/function/f_uac1.c result = sprintf(page, "%u\n", opts->name); \ opts 658 drivers/usb/gadget/function/f_uac1.c mutex_unlock(&opts->lock); \ opts 667 drivers/usb/gadget/function/f_uac1.c struct f_uac1_opts *opts = to_f_uac1_opts(item); \ opts 671 drivers/usb/gadget/function/f_uac1.c mutex_lock(&opts->lock); \ opts 672 drivers/usb/gadget/function/f_uac1.c if (opts->refcnt) { \ opts 681 drivers/usb/gadget/function/f_uac1.c opts->name = num; \ opts 685 drivers/usb/gadget/function/f_uac1.c mutex_unlock(&opts->lock); \ opts 718 drivers/usb/gadget/function/f_uac1.c struct f_uac1_opts *opts; opts 720 drivers/usb/gadget/function/f_uac1.c opts = container_of(f, struct f_uac1_opts, func_inst); opts 721 drivers/usb/gadget/function/f_uac1.c kfree(opts); opts 726 drivers/usb/gadget/function/f_uac1.c struct f_uac1_opts *opts; opts 728 drivers/usb/gadget/function/f_uac1.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 729 drivers/usb/gadget/function/f_uac1.c if (!opts) opts 732 drivers/usb/gadget/function/f_uac1.c mutex_init(&opts->lock); opts 733 drivers/usb/gadget/function/f_uac1.c opts->func_inst.free_func_inst = f_audio_free_inst; opts 735 drivers/usb/gadget/function/f_uac1.c config_group_init_type_name(&opts->func_inst.group, "", opts 738 drivers/usb/gadget/function/f_uac1.c opts->c_chmask = UAC1_DEF_CCHMASK; opts 739 drivers/usb/gadget/function/f_uac1.c opts->c_srate = UAC1_DEF_CSRATE; opts 740 drivers/usb/gadget/function/f_uac1.c opts->c_ssize = UAC1_DEF_CSSIZE; opts 741 drivers/usb/gadget/function/f_uac1.c opts->p_chmask = UAC1_DEF_PCHMASK; opts 742 drivers/usb/gadget/function/f_uac1.c opts->p_srate = UAC1_DEF_PSRATE; opts 743 drivers/usb/gadget/function/f_uac1.c opts->p_ssize = UAC1_DEF_PSSIZE; opts 744 drivers/usb/gadget/function/f_uac1.c opts->req_number = UAC1_DEF_REQ_NUM; opts 745 drivers/usb/gadget/function/f_uac1.c return &opts->func_inst; opts 751 drivers/usb/gadget/function/f_uac1.c struct f_uac1_opts *opts; opts 754 drivers/usb/gadget/function/f_uac1.c opts = container_of(f->fi, struct f_uac1_opts, func_inst); opts 756 drivers/usb/gadget/function/f_uac1.c mutex_lock(&opts->lock); opts 757 drivers/usb/gadget/function/f_uac1.c --opts->refcnt; opts 758 drivers/usb/gadget/function/f_uac1.c mutex_unlock(&opts->lock); opts 774 drivers/usb/gadget/function/f_uac1.c struct f_uac1_opts *opts; opts 781 drivers/usb/gadget/function/f_uac1.c opts = container_of(fi, struct f_uac1_opts, func_inst); opts 782 drivers/usb/gadget/function/f_uac1.c mutex_lock(&opts->lock); opts 783 drivers/usb/gadget/function/f_uac1.c ++opts->refcnt; opts 784 drivers/usb/gadget/function/f_uac1.c mutex_unlock(&opts->lock); opts 326 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts; opts 330 drivers/usb/gadget/function/f_uac1_legacy.c opts = container_of(audio->card.func.fi, struct f_uac1_legacy_opts, opts 332 drivers/usb/gadget/function/f_uac1_legacy.c audio_buf_size = opts->audio_buf_size; opts 578 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts; opts 584 drivers/usb/gadget/function/f_uac1_legacy.c opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); opts 585 drivers/usb/gadget/function/f_uac1_legacy.c req_buf_size = opts->req_buf_size; opts 586 drivers/usb/gadget/function/f_uac1_legacy.c req_count = opts->req_count; opts 587 drivers/usb/gadget/function/f_uac1_legacy.c audio_buf_size = opts->audio_buf_size; opts 810 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts = to_f_uac1_opts(item); opts 812 drivers/usb/gadget/function/f_uac1_legacy.c usb_put_function_instance(&opts->func_inst); opts 823 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts = to_f_uac1_opts(item); \ opts 826 drivers/usb/gadget/function/f_uac1_legacy.c mutex_lock(&opts->lock); \ opts 827 drivers/usb/gadget/function/f_uac1_legacy.c result = sprintf(page, "%u\n", opts->name); \ opts 828 drivers/usb/gadget/function/f_uac1_legacy.c mutex_unlock(&opts->lock); \ opts 836 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts = to_f_uac1_opts(item); \ opts 840 drivers/usb/gadget/function/f_uac1_legacy.c mutex_lock(&opts->lock); \ opts 841 drivers/usb/gadget/function/f_uac1_legacy.c if (opts->refcnt) { \ opts 850 drivers/usb/gadget/function/f_uac1_legacy.c opts->name = num; \ opts 854 drivers/usb/gadget/function/f_uac1_legacy.c mutex_unlock(&opts->lock); \ opts 868 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts = to_f_uac1_opts(item); \ opts 871 drivers/usb/gadget/function/f_uac1_legacy.c mutex_lock(&opts->lock); \ opts 872 drivers/usb/gadget/function/f_uac1_legacy.c result = sprintf(page, "%s\n", opts->name); \ opts 873 drivers/usb/gadget/function/f_uac1_legacy.c mutex_unlock(&opts->lock); \ opts 881 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts = to_f_uac1_opts(item); \ opts 885 drivers/usb/gadget/function/f_uac1_legacy.c mutex_lock(&opts->lock); \ opts 886 drivers/usb/gadget/function/f_uac1_legacy.c if (opts->refcnt) \ opts 894 drivers/usb/gadget/function/f_uac1_legacy.c if (opts->name##_alloc) \ opts 895 drivers/usb/gadget/function/f_uac1_legacy.c kfree(opts->name); \ opts 896 drivers/usb/gadget/function/f_uac1_legacy.c opts->name##_alloc = true; \ opts 897 drivers/usb/gadget/function/f_uac1_legacy.c opts->name = tmp; \ opts 901 drivers/usb/gadget/function/f_uac1_legacy.c mutex_unlock(&opts->lock); \ opts 929 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts; opts 931 drivers/usb/gadget/function/f_uac1_legacy.c opts = container_of(f, struct f_uac1_legacy_opts, func_inst); opts 932 drivers/usb/gadget/function/f_uac1_legacy.c if (opts->fn_play_alloc) opts 933 drivers/usb/gadget/function/f_uac1_legacy.c kfree(opts->fn_play); opts 934 drivers/usb/gadget/function/f_uac1_legacy.c if (opts->fn_cap_alloc) opts 935 drivers/usb/gadget/function/f_uac1_legacy.c kfree(opts->fn_cap); opts 936 drivers/usb/gadget/function/f_uac1_legacy.c if (opts->fn_cntl_alloc) opts 937 drivers/usb/gadget/function/f_uac1_legacy.c kfree(opts->fn_cntl); opts 938 drivers/usb/gadget/function/f_uac1_legacy.c kfree(opts); opts 943 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts; opts 945 drivers/usb/gadget/function/f_uac1_legacy.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 946 drivers/usb/gadget/function/f_uac1_legacy.c if (!opts) opts 949 drivers/usb/gadget/function/f_uac1_legacy.c mutex_init(&opts->lock); opts 950 drivers/usb/gadget/function/f_uac1_legacy.c opts->func_inst.free_func_inst = f_audio_free_inst; opts 952 drivers/usb/gadget/function/f_uac1_legacy.c config_group_init_type_name(&opts->func_inst.group, "", opts 955 drivers/usb/gadget/function/f_uac1_legacy.c opts->req_buf_size = UAC1_OUT_EP_MAX_PACKET_SIZE; opts 956 drivers/usb/gadget/function/f_uac1_legacy.c opts->req_count = UAC1_REQ_COUNT; opts 957 drivers/usb/gadget/function/f_uac1_legacy.c opts->audio_buf_size = UAC1_AUDIO_BUF_SIZE; opts 958 drivers/usb/gadget/function/f_uac1_legacy.c opts->fn_play = FILE_PCM_PLAYBACK; opts 959 drivers/usb/gadget/function/f_uac1_legacy.c opts->fn_cap = FILE_PCM_CAPTURE; opts 960 drivers/usb/gadget/function/f_uac1_legacy.c opts->fn_cntl = FILE_CONTROL; opts 961 drivers/usb/gadget/function/f_uac1_legacy.c return &opts->func_inst; opts 967 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts; opts 970 drivers/usb/gadget/function/f_uac1_legacy.c opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); opts 972 drivers/usb/gadget/function/f_uac1_legacy.c mutex_lock(&opts->lock); opts 973 drivers/usb/gadget/function/f_uac1_legacy.c --opts->refcnt; opts 974 drivers/usb/gadget/function/f_uac1_legacy.c mutex_unlock(&opts->lock); opts 985 drivers/usb/gadget/function/f_uac1_legacy.c struct f_uac1_legacy_opts *opts; opts 994 drivers/usb/gadget/function/f_uac1_legacy.c opts = container_of(fi, struct f_uac1_legacy_opts, func_inst); opts 995 drivers/usb/gadget/function/f_uac1_legacy.c mutex_lock(&opts->lock); opts 996 drivers/usb/gadget/function/f_uac1_legacy.c ++opts->refcnt; opts 997 drivers/usb/gadget/function/f_uac1_legacy.c mutex_unlock(&opts->lock); opts 476 drivers/usb/gadget/function/f_uac2.c static void setup_descriptor(struct f_uac2_opts *opts) opts 481 drivers/usb/gadget/function/f_uac2.c if (EPOUT_EN(opts)) opts 483 drivers/usb/gadget/function/f_uac2.c if (EPIN_EN(opts)) opts 485 drivers/usb/gadget/function/f_uac2.c if (EPOUT_EN(opts)) opts 487 drivers/usb/gadget/function/f_uac2.c if (EPIN_EN(opts)) opts 489 drivers/usb/gadget/function/f_uac2.c if (EPOUT_EN(opts)) opts 491 drivers/usb/gadget/function/f_uac2.c if (EPIN_EN(opts)) opts 506 drivers/usb/gadget/function/f_uac2.c if (EPIN_EN(opts)) { opts 515 drivers/usb/gadget/function/f_uac2.c if (EPOUT_EN(opts)) { opts 529 drivers/usb/gadget/function/f_uac2.c if (EPIN_EN(opts)) opts 531 drivers/usb/gadget/function/f_uac2.c if (EPOUT_EN(opts)) { opts 535 drivers/usb/gadget/function/f_uac2.c if (EPIN_EN(opts)) { opts 539 drivers/usb/gadget/function/f_uac2.c if (EPOUT_EN(opts)) { opts 548 drivers/usb/gadget/function/f_uac2.c if (EPIN_EN(opts)) { opts 562 drivers/usb/gadget/function/f_uac2.c if (EPIN_EN(opts)) opts 564 drivers/usb/gadget/function/f_uac2.c if (EPOUT_EN(opts)) { opts 568 drivers/usb/gadget/function/f_uac2.c if (EPIN_EN(opts)) { opts 572 drivers/usb/gadget/function/f_uac2.c if (EPOUT_EN(opts)) { opts 581 drivers/usb/gadget/function/f_uac2.c if (EPIN_EN(opts)) { opts 816 drivers/usb/gadget/function/f_uac2.c struct f_uac2_opts *opts; opts 825 drivers/usb/gadget/function/f_uac2.c opts = g_audio_to_uac2_opts(agdev); opts 826 drivers/usb/gadget/function/f_uac2.c p_srate = opts->p_srate; opts 827 drivers/usb/gadget/function/f_uac2.c c_srate = opts->c_srate; opts 857 drivers/usb/gadget/function/f_uac2.c struct f_uac2_opts *opts; opts 867 drivers/usb/gadget/function/f_uac2.c opts = g_audio_to_uac2_opts(agdev); opts 868 drivers/usb/gadget/function/f_uac2.c p_srate = opts->p_srate; opts 869 drivers/usb/gadget/function/f_uac2.c c_srate = opts->c_srate; opts 981 drivers/usb/gadget/function/f_uac2.c struct f_uac2_opts *opts = to_f_uac2_opts(item); opts 983 drivers/usb/gadget/function/f_uac2.c usb_put_function_instance(&opts->func_inst); opts 994 drivers/usb/gadget/function/f_uac2.c struct f_uac2_opts *opts = to_f_uac2_opts(item); \ opts 997 drivers/usb/gadget/function/f_uac2.c mutex_lock(&opts->lock); \ opts 998 drivers/usb/gadget/function/f_uac2.c result = sprintf(page, "%u\n", opts->name); \ opts 999 drivers/usb/gadget/function/f_uac2.c mutex_unlock(&opts->lock); \ opts 1007 drivers/usb/gadget/function/f_uac2.c struct f_uac2_opts *opts = to_f_uac2_opts(item); \ opts 1011 drivers/usb/gadget/function/f_uac2.c mutex_lock(&opts->lock); \ opts 1012 drivers/usb/gadget/function/f_uac2.c if (opts->refcnt) { \ opts 1021 drivers/usb/gadget/function/f_uac2.c opts->name = num; \ opts 1025 drivers/usb/gadget/function/f_uac2.c mutex_unlock(&opts->lock); \ opts 1058 drivers/usb/gadget/function/f_uac2.c struct f_uac2_opts *opts; opts 1060 drivers/usb/gadget/function/f_uac2.c opts = container_of(f, struct f_uac2_opts, func_inst); opts 1061 drivers/usb/gadget/function/f_uac2.c kfree(opts); opts 1066 drivers/usb/gadget/function/f_uac2.c struct f_uac2_opts *opts; opts 1068 drivers/usb/gadget/function/f_uac2.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 1069 drivers/usb/gadget/function/f_uac2.c if (!opts) opts 1072 drivers/usb/gadget/function/f_uac2.c mutex_init(&opts->lock); opts 1073 drivers/usb/gadget/function/f_uac2.c opts->func_inst.free_func_inst = afunc_free_inst; opts 1075 drivers/usb/gadget/function/f_uac2.c config_group_init_type_name(&opts->func_inst.group, "", opts 1078 drivers/usb/gadget/function/f_uac2.c opts->p_chmask = UAC2_DEF_PCHMASK; opts 1079 drivers/usb/gadget/function/f_uac2.c opts->p_srate = UAC2_DEF_PSRATE; opts 1080 drivers/usb/gadget/function/f_uac2.c opts->p_ssize = UAC2_DEF_PSSIZE; opts 1081 drivers/usb/gadget/function/f_uac2.c opts->c_chmask = UAC2_DEF_CCHMASK; opts 1082 drivers/usb/gadget/function/f_uac2.c opts->c_srate = UAC2_DEF_CSRATE; opts 1083 drivers/usb/gadget/function/f_uac2.c opts->c_ssize = UAC2_DEF_CSSIZE; opts 1084 drivers/usb/gadget/function/f_uac2.c opts->req_number = UAC2_DEF_REQ_NUM; opts 1085 drivers/usb/gadget/function/f_uac2.c return &opts->func_inst; opts 1091 drivers/usb/gadget/function/f_uac2.c struct f_uac2_opts *opts; opts 1094 drivers/usb/gadget/function/f_uac2.c opts = container_of(f->fi, struct f_uac2_opts, func_inst); opts 1096 drivers/usb/gadget/function/f_uac2.c mutex_lock(&opts->lock); opts 1097 drivers/usb/gadget/function/f_uac2.c --opts->refcnt; opts 1098 drivers/usb/gadget/function/f_uac2.c mutex_unlock(&opts->lock); opts 1114 drivers/usb/gadget/function/f_uac2.c struct f_uac2_opts *opts; opts 1120 drivers/usb/gadget/function/f_uac2.c opts = container_of(fi, struct f_uac2_opts, func_inst); opts 1121 drivers/usb/gadget/function/f_uac2.c mutex_lock(&opts->lock); opts 1122 drivers/usb/gadget/function/f_uac2.c ++opts->refcnt; opts 1123 drivers/usb/gadget/function/f_uac2.c mutex_unlock(&opts->lock); opts 593 drivers/usb/gadget/function/f_uvc.c struct f_uvc_opts *opts; opts 598 drivers/usb/gadget/function/f_uvc.c opts = fi_to_f_uvc_opts(f->fi); opts 601 drivers/usb/gadget/function/f_uvc.c opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U); opts 602 drivers/usb/gadget/function/f_uvc.c opts->streaming_maxpacket = clamp(opts->streaming_maxpacket, 1U, 3072U); opts 603 drivers/usb/gadget/function/f_uvc.c opts->streaming_maxburst = min(opts->streaming_maxburst, 15U); opts 606 drivers/usb/gadget/function/f_uvc.c if (opts->streaming_maxburst && opts 607 drivers/usb/gadget/function/f_uvc.c (opts->streaming_maxpacket % 1024) != 0) { opts 608 drivers/usb/gadget/function/f_uvc.c opts->streaming_maxpacket = roundup(opts->streaming_maxpacket, 1024); opts 610 drivers/usb/gadget/function/f_uvc.c opts->streaming_maxpacket); opts 619 drivers/usb/gadget/function/f_uvc.c if (opts->streaming_maxpacket <= 1024) { opts 621 drivers/usb/gadget/function/f_uvc.c max_packet_size = opts->streaming_maxpacket; opts 622 drivers/usb/gadget/function/f_uvc.c } else if (opts->streaming_maxpacket <= 2048) { opts 624 drivers/usb/gadget/function/f_uvc.c max_packet_size = opts->streaming_maxpacket / 2; opts 627 drivers/usb/gadget/function/f_uvc.c max_packet_size = opts->streaming_maxpacket / 3; opts 631 drivers/usb/gadget/function/f_uvc.c cpu_to_le16(min(opts->streaming_maxpacket, 1023U)); opts 632 drivers/usb/gadget/function/f_uvc.c uvc_fs_streaming_ep.bInterval = opts->streaming_interval; opts 636 drivers/usb/gadget/function/f_uvc.c uvc_hs_streaming_ep.bInterval = opts->streaming_interval; opts 639 drivers/usb/gadget/function/f_uvc.c uvc_ss_streaming_ep.bInterval = opts->streaming_interval; opts 641 drivers/usb/gadget/function/f_uvc.c uvc_ss_streaming_comp.bMaxBurst = opts->streaming_maxburst; opts 644 drivers/usb/gadget/function/f_uvc.c (opts->streaming_maxburst + 1)); opts 690 drivers/usb/gadget/function/f_uvc.c opts->control_interface = ret; opts 697 drivers/usb/gadget/function/f_uvc.c opts->streaming_interface = ret; opts 771 drivers/usb/gadget/function/f_uvc.c struct f_uvc_opts *opts = fi_to_f_uvc_opts(f); opts 773 drivers/usb/gadget/function/f_uvc.c mutex_destroy(&opts->lock); opts 774 drivers/usb/gadget/function/f_uvc.c kfree(opts); opts 779 drivers/usb/gadget/function/f_uvc.c struct f_uvc_opts *opts; opts 787 drivers/usb/gadget/function/f_uvc.c opts = kzalloc(sizeof(*opts), GFP_KERNEL); opts 788 drivers/usb/gadget/function/f_uvc.c if (!opts) opts 790 drivers/usb/gadget/function/f_uvc.c opts->func_inst.free_func_inst = uvc_free_inst; opts 791 drivers/usb/gadget/function/f_uvc.c mutex_init(&opts->lock); opts 793 drivers/usb/gadget/function/f_uvc.c cd = &opts->uvc_camera_terminal; opts 809 drivers/usb/gadget/function/f_uvc.c pd = &opts->uvc_processing; opts 821 drivers/usb/gadget/function/f_uvc.c od = &opts->uvc_output_terminal; opts 831 drivers/usb/gadget/function/f_uvc.c md = &opts->uvc_color_matching; opts 840 drivers/usb/gadget/function/f_uvc.c ctl_cls = opts->uvc_fs_control_cls; opts 846 drivers/usb/gadget/function/f_uvc.c opts->fs_control = opts 850 drivers/usb/gadget/function/f_uvc.c ctl_cls = opts->uvc_ss_control_cls; opts 856 drivers/usb/gadget/function/f_uvc.c opts->ss_control = opts 859 drivers/usb/gadget/function/f_uvc.c opts->streaming_interval = 1; opts 860 drivers/usb/gadget/function/f_uvc.c opts->streaming_maxpacket = 1024; opts 862 drivers/usb/gadget/function/f_uvc.c ret = uvcg_attach_configfs(opts); opts 864 drivers/usb/gadget/function/f_uvc.c kfree(opts); opts 868 drivers/usb/gadget/function/f_uvc.c return &opts->func_inst; opts 874 drivers/usb/gadget/function/f_uvc.c struct f_uvc_opts *opts = container_of(f->fi, struct f_uvc_opts, opts 876 drivers/usb/gadget/function/f_uvc.c --opts->refcnt; opts 900 drivers/usb/gadget/function/f_uvc.c struct f_uvc_opts *opts; opts 909 drivers/usb/gadget/function/f_uvc.c opts = fi_to_f_uvc_opts(fi); opts 911 drivers/usb/gadget/function/f_uvc.c mutex_lock(&opts->lock); opts 912 drivers/usb/gadget/function/f_uvc.c if (opts->uvc_fs_streaming_cls) { opts 913 drivers/usb/gadget/function/f_uvc.c strm_cls = opts->uvc_fs_streaming_cls; opts 914 drivers/usb/gadget/function/f_uvc.c opts->fs_streaming = opts 917 drivers/usb/gadget/function/f_uvc.c if (opts->uvc_hs_streaming_cls) { opts 918 drivers/usb/gadget/function/f_uvc.c strm_cls = opts->uvc_hs_streaming_cls; opts 919 drivers/usb/gadget/function/f_uvc.c opts->hs_streaming = opts 922 drivers/usb/gadget/function/f_uvc.c if (opts->uvc_ss_streaming_cls) { opts 923 drivers/usb/gadget/function/f_uvc.c strm_cls = opts->uvc_ss_streaming_cls; opts 924 drivers/usb/gadget/function/f_uvc.c opts->ss_streaming = opts 928 drivers/usb/gadget/function/f_uvc.c uvc->desc.fs_control = opts->fs_control; opts 929 drivers/usb/gadget/function/f_uvc.c uvc->desc.ss_control = opts->ss_control; opts 930 drivers/usb/gadget/function/f_uvc.c uvc->desc.fs_streaming = opts->fs_streaming; opts 931 drivers/usb/gadget/function/f_uvc.c uvc->desc.hs_streaming = opts->hs_streaming; opts 932 drivers/usb/gadget/function/f_uvc.c uvc->desc.ss_streaming = opts->ss_streaming; opts 933 drivers/usb/gadget/function/f_uvc.c ++opts->refcnt; opts 934 drivers/usb/gadget/function/f_uvc.c mutex_unlock(&opts->lock); opts 19 drivers/usb/gadget/function/u_ether_configfs.h struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \ opts 21 drivers/usb/gadget/function/u_ether_configfs.h usb_put_function_instance(&opts->func_inst); \ opts 32 drivers/usb/gadget/function/u_ether_configfs.h struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \ opts 35 drivers/usb/gadget/function/u_ether_configfs.h mutex_lock(&opts->lock); \ opts 36 drivers/usb/gadget/function/u_ether_configfs.h result = gether_get_dev_addr(opts->net, page, PAGE_SIZE); \ opts 37 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 45 drivers/usb/gadget/function/u_ether_configfs.h struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \ opts 48 drivers/usb/gadget/function/u_ether_configfs.h mutex_lock(&opts->lock); \ opts 49 drivers/usb/gadget/function/u_ether_configfs.h if (opts->refcnt) { \ opts 50 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 54 drivers/usb/gadget/function/u_ether_configfs.h ret = gether_set_dev_addr(opts->net, page); \ opts 55 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 67 drivers/usb/gadget/function/u_ether_configfs.h struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \ opts 70 drivers/usb/gadget/function/u_ether_configfs.h mutex_lock(&opts->lock); \ opts 71 drivers/usb/gadget/function/u_ether_configfs.h result = gether_get_host_addr(opts->net, page, PAGE_SIZE); \ opts 72 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 80 drivers/usb/gadget/function/u_ether_configfs.h struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \ opts 83 drivers/usb/gadget/function/u_ether_configfs.h mutex_lock(&opts->lock); \ opts 84 drivers/usb/gadget/function/u_ether_configfs.h if (opts->refcnt) { \ opts 85 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 89 drivers/usb/gadget/function/u_ether_configfs.h ret = gether_set_host_addr(opts->net, page); \ opts 90 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 102 drivers/usb/gadget/function/u_ether_configfs.h struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \ opts 105 drivers/usb/gadget/function/u_ether_configfs.h mutex_lock(&opts->lock); \ opts 106 drivers/usb/gadget/function/u_ether_configfs.h qmult = gether_get_qmult(opts->net); \ opts 107 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 114 drivers/usb/gadget/function/u_ether_configfs.h struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \ opts 118 drivers/usb/gadget/function/u_ether_configfs.h mutex_lock(&opts->lock); \ opts 119 drivers/usb/gadget/function/u_ether_configfs.h if (opts->refcnt) { \ opts 128 drivers/usb/gadget/function/u_ether_configfs.h gether_set_qmult(opts->net, val); \ opts 131 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 141 drivers/usb/gadget/function/u_ether_configfs.h struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \ opts 144 drivers/usb/gadget/function/u_ether_configfs.h mutex_lock(&opts->lock); \ opts 145 drivers/usb/gadget/function/u_ether_configfs.h ret = gether_get_ifname(opts->net, page, PAGE_SIZE); \ opts 146 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 157 drivers/usb/gadget/function/u_ether_configfs.h struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \ opts 160 drivers/usb/gadget/function/u_ether_configfs.h mutex_lock(&opts->lock); \ opts 161 drivers/usb/gadget/function/u_ether_configfs.h ret = sprintf(page, "%02x\n", opts->_n_); \ opts 162 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 171 drivers/usb/gadget/function/u_ether_configfs.h struct f_##_f_##_opts *opts = to_f_##_f_##_opts(item); \ opts 175 drivers/usb/gadget/function/u_ether_configfs.h mutex_lock(&opts->lock); \ opts 178 drivers/usb/gadget/function/u_ether_configfs.h opts->_n_ = val; \ opts 181 drivers/usb/gadget/function/u_ether_configfs.h mutex_unlock(&opts->lock); \ opts 41 drivers/usb/gadget/function/u_fs.h struct f_fs_opts *opts; opts 200 drivers/usb/gadget/function/u_uac1_legacy.c struct f_uac1_legacy_opts *opts; opts 203 drivers/usb/gadget/function/u_uac1_legacy.c opts = container_of(card->func.fi, struct f_uac1_legacy_opts, opts 205 drivers/usb/gadget/function/u_uac1_legacy.c fn_play = opts->fn_play; opts 206 drivers/usb/gadget/function/u_uac1_legacy.c fn_cap = opts->fn_cap; opts 207 drivers/usb/gadget/function/u_uac1_legacy.c fn_cntl = opts->fn_cntl; opts 146 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 154 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 156 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 158 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 169 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 178 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 180 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 181 drivers/usb/gadget/function/uvc_configfs.c if (ch->linked || opts->refcnt) { \ opts 197 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 264 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 273 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 274 drivers/usb/gadget/function/uvc_configfs.c pd = &opts->uvc_processing; \ opts 276 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 278 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 297 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 307 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 308 drivers/usb/gadget/function/uvc_configfs.c pd = &opts->uvc_processing; opts 310 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 315 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 367 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 377 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 378 drivers/usb/gadget/function/uvc_configfs.c cd = &opts->uvc_camera_terminal; \ opts 380 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 382 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 408 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 419 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 420 drivers/usb/gadget/function/uvc_configfs.c cd = &opts->uvc_camera_terminal; opts 422 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 427 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 481 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 491 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 492 drivers/usb/gadget/function/uvc_configfs.c cd = &opts->uvc_output_terminal; \ opts 494 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 496 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 593 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 606 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(control->ci_parent); opts 608 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 610 drivers/usb/gadget/function/uvc_configfs.c class_array = uvcg_get_ctl_class_arr(src, opts); opts 613 drivers/usb/gadget/function/uvc_configfs.c if (opts->refcnt || class_array[0]) { opts 624 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 635 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 647 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(control->ci_parent); opts 649 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 651 drivers/usb/gadget/function/uvc_configfs.c class_array = uvcg_get_ctl_class_arr(src, opts); opts 652 drivers/usb/gadget/function/uvc_configfs.c if (!class_array || opts->refcnt) opts 660 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 722 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 728 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 730 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 731 drivers/usb/gadget/function/uvc_configfs.c result += sprintf(page, "%u\n", opts->control_interface); opts 732 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 792 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 801 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 803 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 810 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 819 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 827 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 829 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 830 drivers/usb/gadget/function/uvc_configfs.c if (ch->linked || opts->refcnt) { opts 843 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 878 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 888 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 890 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 934 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 944 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 953 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 955 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 972 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 987 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 995 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 997 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 999 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 1096 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 1104 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 1106 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 1108 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 1118 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 1132 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 1135 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 1136 drivers/usb/gadget/function/uvc_configfs.c if (fmt->linked || opts->refcnt) { \ opts 1144 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 1156 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 1173 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 1175 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 1177 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 1200 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 1209 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 1211 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 1216 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 1277 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 1287 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 1290 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 1291 drivers/usb/gadget/function/uvc_configfs.c if (fmt->linked || opts->refcnt) { opts 1320 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 1351 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 1368 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 1370 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 1379 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 1384 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 1394 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 1398 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 1400 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 1403 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 1449 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 1456 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 1458 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 1460 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 1471 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 1479 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 1481 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 1482 drivers/usb/gadget/function/uvc_configfs.c if (ch->fmt.linked || opts->refcnt) { opts 1492 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 1504 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 1512 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 1514 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 1516 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 1529 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 1537 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 1539 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 1541 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 1552 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 1561 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 1563 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 1564 drivers/usb/gadget/function/uvc_configfs.c if (u->fmt.linked || opts->refcnt) { \ opts 1576 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 1698 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 1706 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 1708 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 1710 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 1722 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 1730 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 1732 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 1734 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 1745 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 1754 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 1756 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 1757 drivers/usb/gadget/function/uvc_configfs.c if (u->fmt.linked || opts->refcnt) { \ opts 1769 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 1868 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; \ opts 1877 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); \ opts 1878 drivers/usb/gadget/function/uvc_configfs.c cd = &opts->uvc_color_matching; \ opts 1880 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 1882 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 2159 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 2174 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(streaming->ci_parent); opts 2176 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 2178 drivers/usb/gadget/function/uvc_configfs.c class_array = __uvcg_get_stream_class_arr(src, opts); opts 2179 drivers/usb/gadget/function/uvc_configfs.c if (!class_array || *class_array || opts->refcnt) { opts 2216 drivers/usb/gadget/function/uvc_configfs.c *cl_arr = (struct uvc_descriptor_header *)&opts->uvc_color_matching; opts 2222 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 2233 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 2245 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(streaming->ci_parent); opts 2247 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 2249 drivers/usb/gadget/function/uvc_configfs.c class_array = __uvcg_get_stream_class_arr(src, opts); opts 2253 drivers/usb/gadget/function/uvc_configfs.c if (opts->refcnt) opts 2263 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 2325 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts; opts 2331 drivers/usb/gadget/function/uvc_configfs.c opts = to_f_uvc_opts(opts_item); opts 2333 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); opts 2334 drivers/usb/gadget/function/uvc_configfs.c result += sprintf(page, "%u\n", opts->streaming_interface); opts 2335 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); opts 2372 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts = to_f_uvc_opts(item); opts 2375 drivers/usb/gadget/function/uvc_configfs.c usb_put_function_instance(&opts->func_inst); opts 2386 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts = to_f_uvc_opts(item); \ opts 2389 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 2390 drivers/usb/gadget/function/uvc_configfs.c result = sprintf(page, "%u\n", opts->cname); \ opts 2391 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 2400 drivers/usb/gadget/function/uvc_configfs.c struct f_uvc_opts *opts = to_f_uvc_opts(item); \ opts 2404 drivers/usb/gadget/function/uvc_configfs.c mutex_lock(&opts->lock); \ opts 2405 drivers/usb/gadget/function/uvc_configfs.c if (opts->refcnt) { \ opts 2418 drivers/usb/gadget/function/uvc_configfs.c opts->cname = num; \ opts 2421 drivers/usb/gadget/function/uvc_configfs.c mutex_unlock(&opts->lock); \ opts 2454 drivers/usb/gadget/function/uvc_configfs.c int uvcg_attach_configfs(struct f_uvc_opts *opts) opts 2458 drivers/usb/gadget/function/uvc_configfs.c config_group_init_type_name(&opts->func_inst.group, uvc_func_type.name, opts 2461 drivers/usb/gadget/function/uvc_configfs.c ret = uvcg_config_create_children(&opts->func_inst.group, opts 2464 drivers/usb/gadget/function/uvc_configfs.c config_group_put(&opts->func_inst.group); opts 17 drivers/usb/gadget/function/uvc_configfs.h int uvcg_attach_configfs(struct f_uvc_opts *opts); opts 108 drivers/usb/gadget/legacy/acm_ms.c struct fsg_opts *opts; opts 116 drivers/usb/gadget/legacy/acm_ms.c opts = fsg_opts_from_func_inst(fi_msg); opts 158 drivers/usb/gadget/legacy/acm_ms.c struct fsg_opts *opts; opts 174 drivers/usb/gadget/legacy/acm_ms.c opts = fsg_opts_from_func_inst(fi_msg); opts 176 drivers/usb/gadget/legacy/acm_ms.c opts->no_configfs = true; opts 177 drivers/usb/gadget/legacy/acm_ms.c status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); opts 181 drivers/usb/gadget/legacy/acm_ms.c status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); opts 185 drivers/usb/gadget/legacy/acm_ms.c fsg_common_set_sysfs(opts->common, true); opts 186 drivers/usb/gadget/legacy/acm_ms.c status = fsg_common_create_luns(opts->common, &config); opts 190 drivers/usb/gadget/legacy/acm_ms.c fsg_common_set_inquiry_string(opts->common, config.vendor_name, opts 228 drivers/usb/gadget/legacy/acm_ms.c fsg_common_remove_luns(opts->common); opts 230 drivers/usb/gadget/legacy/acm_ms.c fsg_common_free_buffers(opts->common); opts 179 drivers/usb/gadget/legacy/g_ffs.c struct f_fs_opts *opts; opts 214 drivers/usb/gadget/legacy/g_ffs.c opts = to_f_fs_opts(fi_ffs[i]); opts 216 drivers/usb/gadget/legacy/g_ffs.c ret = ffs_single_dev(opts->dev); opts 218 drivers/usb/gadget/legacy/g_ffs.c ret = ffs_name_dev(opts->dev, func_names[i]); opts 221 drivers/usb/gadget/legacy/g_ffs.c opts->dev->ffs_ready_callback = functionfs_ready_callback; opts 222 drivers/usb/gadget/legacy/g_ffs.c opts->dev->ffs_closed_callback = functionfs_closed_callback; opts 223 drivers/usb/gadget/legacy/g_ffs.c opts->dev->ffs_acquire_dev_callback = functionfs_acquire_dev; opts 224 drivers/usb/gadget/legacy/g_ffs.c opts->dev->ffs_release_dev_callback = functionfs_release_dev; opts 225 drivers/usb/gadget/legacy/g_ffs.c opts->no_configfs = true; opts 108 drivers/usb/gadget/legacy/mass_storage.c struct fsg_opts *opts; opts 116 drivers/usb/gadget/legacy/mass_storage.c opts = fsg_opts_from_func_inst(fi_msg); opts 144 drivers/usb/gadget/legacy/mass_storage.c struct fsg_opts *opts; opts 153 drivers/usb/gadget/legacy/mass_storage.c opts = fsg_opts_from_func_inst(fi_msg); opts 155 drivers/usb/gadget/legacy/mass_storage.c opts->no_configfs = true; opts 156 drivers/usb/gadget/legacy/mass_storage.c status = fsg_common_set_num_buffers(opts->common, fsg_num_buffers); opts 160 drivers/usb/gadget/legacy/mass_storage.c status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); opts 164 drivers/usb/gadget/legacy/mass_storage.c fsg_common_set_sysfs(opts->common, true); opts 165 drivers/usb/gadget/legacy/mass_storage.c status = fsg_common_create_luns(opts->common, &config); opts 169 drivers/usb/gadget/legacy/mass_storage.c fsg_common_set_inquiry_string(opts->common, config.vendor_name, opts 201 drivers/usb/gadget/legacy/mass_storage.c fsg_common_remove_luns(opts->common); opts 203 drivers/usb/gadget/legacy/mass_storage.c fsg_common_free_buffers(opts->common); opts 141 drivers/usb/gadget/legacy/printer.c struct f_printer_opts *opts; opts 148 drivers/usb/gadget/legacy/printer.c opts = container_of(fi_printer, struct f_printer_opts, func_inst); opts 149 drivers/usb/gadget/legacy/printer.c opts->minor = 0; opts 150 drivers/usb/gadget/legacy/printer.c opts->q_len = QLEN; opts 152 drivers/usb/gadget/legacy/printer.c opts->pnp_string = kstrdup(iPNPstring, GFP_KERNEL); opts 153 drivers/usb/gadget/legacy/printer.c if (!opts->pnp_string) { opts 157 drivers/usb/gadget/legacy/printer.c opts->pnp_string_allocated = true; opts 163 drivers/usb/gadget/legacy/printer.c opts->pnp_string = pnp_string; opts 162 fs/9p/v9fs.c static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts) opts 180 fs/9p/v9fs.c if (!opts) opts 183 fs/9p/v9fs.c tmp_options = kstrdup(opts, GFP_KERNEL); opts 692 fs/befs/linuxvfs.c parse_options(char *options, struct befs_mount_options *opts) opts 701 fs/befs/linuxvfs.c opts->uid = GLOBAL_ROOT_UID; opts 702 fs/befs/linuxvfs.c opts->gid = GLOBAL_ROOT_GID; opts 703 fs/befs/linuxvfs.c opts->use_uid = 0; opts 704 fs/befs/linuxvfs.c opts->use_gid = 0; opts 705 fs/befs/linuxvfs.c opts->iocharset = NULL; opts 706 fs/befs/linuxvfs.c opts->debug = 0; opts 730 fs/befs/linuxvfs.c opts->uid = uid; opts 731 fs/befs/linuxvfs.c opts->use_uid = 1; opts 744 fs/befs/linuxvfs.c opts->gid = gid; opts 745 fs/befs/linuxvfs.c opts->use_gid = 1; opts 748 fs/befs/linuxvfs.c kfree(opts->iocharset); opts 749 fs/befs/linuxvfs.c opts->iocharset = match_strdup(&args[0]); opts 750 fs/befs/linuxvfs.c if (!opts->iocharset) { opts 757 fs/befs/linuxvfs.c opts->debug = 1; opts 771 fs/befs/linuxvfs.c struct befs_mount_options *opts = &befs_sb->mount_opts; opts 773 fs/befs/linuxvfs.c if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) opts 775 fs/befs/linuxvfs.c from_kuid_munged(&init_user_ns, opts->uid)); opts 776 fs/befs/linuxvfs.c if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) opts 778 fs/befs/linuxvfs.c from_kgid_munged(&init_user_ns, opts->gid)); opts 779 fs/befs/linuxvfs.c if (opts->iocharset) opts 780 fs/befs/linuxvfs.c seq_printf(m, ",charset=%s", opts->iocharset); opts 781 fs/befs/linuxvfs.c if (opts->debug) opts 898 fs/btrfs/super.c char *device_name, *opts, *orig, *p; opts 911 fs/btrfs/super.c opts = kstrdup(options, GFP_KERNEL); opts 912 fs/btrfs/super.c if (!opts) opts 914 fs/btrfs/super.c orig = opts; opts 916 fs/btrfs/super.c while ((p = strsep(&opts, ",")) != NULL) { opts 953 fs/btrfs/super.c char *opts, *orig, *p; opts 964 fs/btrfs/super.c opts = kstrdup(options, GFP_KERNEL); opts 965 fs/btrfs/super.c if (!opts) opts 967 fs/btrfs/super.c orig = opts; opts 969 fs/btrfs/super.c while ((p = strsep(&opts, ",")) != NULL) { opts 4205 fs/ceph/mds_client.c struct ceph_options *opts = mdsc->fsc->client->options; opts 4214 fs/ceph/mds_client.c ceph_timeout_jiffies(opts->mount_timeout)); opts 4342 fs/ceph/mds_client.c struct ceph_options *opts = mdsc->fsc->client->options; opts 4368 fs/ceph/mds_client.c ceph_timeout_jiffies(opts->mount_timeout)); opts 83 fs/cifs/cifsroot.c int __init cifs_root_data(char **dev, char **opts) opts 91 fs/cifs/cifsroot.c *opts = root_opts; opts 100 fs/debugfs/inode.c static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts) opts 109 fs/debugfs/inode.c opts->mode = DEBUGFS_DEFAULT_MODE; opts 123 fs/debugfs/inode.c opts->uid = uid; opts 131 fs/debugfs/inode.c opts->gid = gid; opts 136 fs/debugfs/inode.c opts->mode = option & S_IALLUGO; opts 152 fs/debugfs/inode.c struct debugfs_mount_opts *opts = &fsi->mount_opts; opts 155 fs/debugfs/inode.c inode->i_mode |= opts->mode; opts 157 fs/debugfs/inode.c inode->i_uid = opts->uid; opts 158 fs/debugfs/inode.c inode->i_gid = opts->gid; opts 182 fs/debugfs/inode.c struct debugfs_mount_opts *opts = &fsi->mount_opts; opts 184 fs/debugfs/inode.c if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) opts 186 fs/debugfs/inode.c from_kuid_munged(&init_user_ns, opts->uid)); opts 187 fs/debugfs/inode.c if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) opts 189 fs/debugfs/inode.c from_kgid_munged(&init_user_ns, opts->gid)); opts 190 fs/debugfs/inode.c if (opts->mode != DEBUGFS_DEFAULT_MODE) opts 191 fs/debugfs/inode.c seq_printf(m, ",mode=%o", opts->mode); opts 246 fs/devpts/inode.c static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) opts 252 fs/devpts/inode.c opts->setuid = 0; opts 253 fs/devpts/inode.c opts->setgid = 0; opts 254 fs/devpts/inode.c opts->uid = GLOBAL_ROOT_UID; opts 255 fs/devpts/inode.c opts->gid = GLOBAL_ROOT_GID; opts 256 fs/devpts/inode.c opts->mode = DEVPTS_DEFAULT_MODE; opts 257 fs/devpts/inode.c opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; opts 258 fs/devpts/inode.c opts->max = NR_UNIX98_PTY_MAX; opts 264 fs/devpts/inode.c opts->reserve = opts 283 fs/devpts/inode.c opts->uid = uid; opts 284 fs/devpts/inode.c opts->setuid = 1; opts 292 fs/devpts/inode.c opts->gid = gid; opts 293 fs/devpts/inode.c opts->setgid = 1; opts 298 fs/devpts/inode.c opts->mode = option & S_IALLUGO; opts 303 fs/devpts/inode.c opts->ptmxmode = option & S_IALLUGO; opts 311 fs/devpts/inode.c opts->max = option; opts 330 fs/devpts/inode.c struct pts_mount_opts *opts = &fsi->mount_opts; opts 361 fs/devpts/inode.c mode = S_IFCHR|opts->ptmxmode; opts 388 fs/devpts/inode.c struct pts_mount_opts *opts = &fsi->mount_opts; opts 390 fs/devpts/inode.c err = parse_mount_options(data, PARSE_REMOUNT, opts); opts 406 fs/devpts/inode.c struct pts_mount_opts *opts = &fsi->mount_opts; opts 408 fs/devpts/inode.c if (opts->setuid) opts 410 fs/devpts/inode.c from_kuid_munged(&init_user_ns, opts->uid)); opts 411 fs/devpts/inode.c if (opts->setgid) opts 413 fs/devpts/inode.c from_kgid_munged(&init_user_ns, opts->gid)); opts 414 fs/devpts/inode.c seq_printf(seq, ",mode=%03o", opts->mode); opts 415 fs/devpts/inode.c seq_printf(seq, ",ptmxmode=%03o", opts->ptmxmode); opts 416 fs/devpts/inode.c if (opts->max < NR_UNIX98_PTY_MAX) opts 417 fs/devpts/inode.c seq_printf(seq, ",max=%d", opts->max); opts 568 fs/devpts/inode.c struct pts_mount_opts *opts; opts 572 fs/devpts/inode.c opts = &fsi->mount_opts; opts 579 fs/devpts/inode.c inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); opts 580 fs/devpts/inode.c inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); opts 582 fs/devpts/inode.c init_special_inode(inode, S_IFCHR|opts->mode, MKDEV(UNIX98_PTY_SLAVE_MAJOR, index)); opts 476 fs/ext2/super.c struct ext2_mount_options *opts) opts 495 fs/ext2/super.c clear_opt (opts->s_mount_opt, MINIX_DF); opts 498 fs/ext2/super.c set_opt (opts->s_mount_opt, MINIX_DF); opts 501 fs/ext2/super.c set_opt (opts->s_mount_opt, GRPID); opts 504 fs/ext2/super.c clear_opt (opts->s_mount_opt, GRPID); opts 515 fs/ext2/super.c opts->s_resuid = uid; opts 525 fs/ext2/super.c opts->s_resgid = gid; opts 532 fs/ext2/super.c clear_opt (opts->s_mount_opt, ERRORS_CONT); opts 533 fs/ext2/super.c clear_opt (opts->s_mount_opt, ERRORS_RO); opts 534 fs/ext2/super.c set_opt (opts->s_mount_opt, ERRORS_PANIC); opts 537 fs/ext2/super.c clear_opt (opts->s_mount_opt, ERRORS_CONT); opts 538 fs/ext2/super.c clear_opt (opts->s_mount_opt, ERRORS_PANIC); opts 539 fs/ext2/super.c set_opt (opts->s_mount_opt, ERRORS_RO); opts 542 fs/ext2/super.c clear_opt (opts->s_mount_opt, ERRORS_RO); opts 543 fs/ext2/super.c clear_opt (opts->s_mount_opt, ERRORS_PANIC); opts 544 fs/ext2/super.c set_opt (opts->s_mount_opt, ERRORS_CONT); opts 547 fs/ext2/super.c set_opt (opts->s_mount_opt, NO_UID32); opts 553 fs/ext2/super.c clear_opt (opts->s_mount_opt, CHECK); opts 556 fs/ext2/super.c set_opt (opts->s_mount_opt, DEBUG); opts 559 fs/ext2/super.c set_opt (opts->s_mount_opt, OLDALLOC); opts 562 fs/ext2/super.c clear_opt (opts->s_mount_opt, OLDALLOC); opts 565 fs/ext2/super.c set_opt (opts->s_mount_opt, NOBH); opts 569 fs/ext2/super.c set_opt (opts->s_mount_opt, XATTR_USER); opts 572 fs/ext2/super.c clear_opt (opts->s_mount_opt, XATTR_USER); opts 583 fs/ext2/super.c set_opt(opts->s_mount_opt, POSIX_ACL); opts 586 fs/ext2/super.c clear_opt(opts->s_mount_opt, POSIX_ACL); opts 597 fs/ext2/super.c set_opt(opts->s_mount_opt, XIP); opts 603 fs/ext2/super.c set_opt(opts->s_mount_opt, DAX); opts 612 fs/ext2/super.c set_opt(opts->s_mount_opt, USRQUOTA); opts 616 fs/ext2/super.c set_opt(opts->s_mount_opt, GRPQUOTA); opts 628 fs/ext2/super.c set_opt(opts->s_mount_opt, RESERVATION); opts 632 fs/ext2/super.c clear_opt(opts->s_mount_opt, RESERVATION); opts 841 fs/ext2/super.c struct ext2_mount_options opts; opts 899 fs/ext2/super.c opts.s_mount_opt = 0; opts 903 fs/ext2/super.c set_opt(opts.s_mount_opt, DEBUG); opts 905 fs/ext2/super.c set_opt(opts.s_mount_opt, GRPID); opts 907 fs/ext2/super.c set_opt(opts.s_mount_opt, NO_UID32); opts 910 fs/ext2/super.c set_opt(opts.s_mount_opt, XATTR_USER); opts 914 fs/ext2/super.c set_opt(opts.s_mount_opt, POSIX_ACL); opts 918 fs/ext2/super.c set_opt(opts.s_mount_opt, ERRORS_PANIC); opts 920 fs/ext2/super.c set_opt(opts.s_mount_opt, ERRORS_CONT); opts 922 fs/ext2/super.c set_opt(opts.s_mount_opt, ERRORS_RO); opts 924 fs/ext2/super.c opts.s_resuid = make_kuid(&init_user_ns, le16_to_cpu(es->s_def_resuid)); opts 925 fs/ext2/super.c opts.s_resgid = make_kgid(&init_user_ns, le16_to_cpu(es->s_def_resgid)); opts 927 fs/ext2/super.c set_opt(opts.s_mount_opt, RESERVATION); opts 929 fs/ext2/super.c if (!parse_options((char *) data, sb, &opts)) opts 932 fs/ext2/super.c sbi->s_mount_opt = opts.s_mount_opt; opts 933 fs/ext2/super.c sbi->s_resuid = opts.s_resuid; opts 934 fs/ext2/super.c sbi->s_resgid = opts.s_resgid; opts 712 fs/fat/inode.c static void fat_reset_iocharset(struct fat_mount_options *opts) opts 714 fs/fat/inode.c if (opts->iocharset != fat_default_iocharset) { opts 716 fs/fat/inode.c kfree(opts->iocharset); opts 717 fs/fat/inode.c opts->iocharset = fat_default_iocharset; opts 943 fs/fat/inode.c struct fat_mount_options *opts = &sbi->options; opts 944 fs/fat/inode.c int isvfat = opts->isvfat; opts 946 fs/fat/inode.c if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) opts 948 fs/fat/inode.c from_kuid_munged(&init_user_ns, opts->fs_uid)); opts 949 fs/fat/inode.c if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) opts 951 fs/fat/inode.c from_kgid_munged(&init_user_ns, opts->fs_gid)); opts 952 fs/fat/inode.c seq_printf(m, ",fmask=%04o", opts->fs_fmask); opts 953 fs/fat/inode.c seq_printf(m, ",dmask=%04o", opts->fs_dmask); opts 954 fs/fat/inode.c if (opts->allow_utime) opts 955 fs/fat/inode.c seq_printf(m, ",allow_utime=%04o", opts->allow_utime); opts 963 fs/fat/inode.c switch (opts->shortname) { opts 981 fs/fat/inode.c if (opts->name_check != 'n') opts 982 fs/fat/inode.c seq_printf(m, ",check=%c", opts->name_check); opts 983 fs/fat/inode.c if (opts->usefree) opts 985 fs/fat/inode.c if (opts->quiet) opts 987 fs/fat/inode.c if (opts->showexec) opts 989 fs/fat/inode.c if (opts->sys_immutable) opts 992 fs/fat/inode.c if (opts->dotsOK) opts 994 fs/fat/inode.c if (opts->nocase) opts 997 fs/fat/inode.c if (opts->utf8) opts 999 fs/fat/inode.c if (opts->unicode_xlate) opts 1001 fs/fat/inode.c if (!opts->numtail) opts 1003 fs/fat/inode.c if (opts->rodir) opts 1006 fs/fat/inode.c if (opts->flush) opts 1008 fs/fat/inode.c if (opts->tz_set) { opts 1009 fs/fat/inode.c if (opts->time_offset) opts 1010 fs/fat/inode.c seq_printf(m, ",time_offset=%d", opts->time_offset); opts 1014 fs/fat/inode.c if (opts->errors == FAT_ERRORS_CONT) opts 1016 fs/fat/inode.c else if (opts->errors == FAT_ERRORS_PANIC) opts 1020 fs/fat/inode.c if (opts->nfs == FAT_NFS_NOSTALE_RO) opts 1022 fs/fat/inode.c else if (opts->nfs) opts 1024 fs/fat/inode.c if (opts->discard) opts 1026 fs/fat/inode.c if (opts->dos1xfloppy) opts 1128 fs/fat/inode.c int silent, int *debug, struct fat_mount_options *opts) opts 1135 fs/fat/inode.c opts->isvfat = is_vfat; opts 1137 fs/fat/inode.c opts->fs_uid = current_uid(); opts 1138 fs/fat/inode.c opts->fs_gid = current_gid(); opts 1139 fs/fat/inode.c opts->fs_fmask = opts->fs_dmask = current_umask(); opts 1140 fs/fat/inode.c opts->allow_utime = -1; opts 1141 fs/fat/inode.c opts->codepage = fat_default_codepage; opts 1142 fs/fat/inode.c fat_reset_iocharset(opts); opts 1144 fs/fat/inode.c opts->shortname = VFAT_SFN_DISPLAY_WINNT|VFAT_SFN_CREATE_WIN95; opts 1145 fs/fat/inode.c opts->rodir = 0; opts 1147 fs/fat/inode.c opts->shortname = 0; opts 1148 fs/fat/inode.c opts->rodir = 1; opts 1150 fs/fat/inode.c opts->name_check = 'n'; opts 1151 fs/fat/inode.c opts->quiet = opts->showexec = opts->sys_immutable = opts->dotsOK = 0; opts 1152 fs/fat/inode.c opts->unicode_xlate = 0; opts 1153 fs/fat/inode.c opts->numtail = 1; opts 1154 fs/fat/inode.c opts->usefree = opts->nocase = 0; opts 1155 fs/fat/inode.c opts->tz_set = 0; opts 1156 fs/fat/inode.c opts->nfs = 0; opts 1157 fs/fat/inode.c opts->errors = FAT_ERRORS_RO; opts 1160 fs/fat/inode.c opts->utf8 = IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8) && is_vfat; opts 1179 fs/fat/inode.c opts->name_check = 's'; opts 1182 fs/fat/inode.c opts->name_check = 'r'; opts 1185 fs/fat/inode.c opts->name_check = 'n'; opts 1188 fs/fat/inode.c opts->usefree = 1; opts 1192 fs/fat/inode.c opts->nocase = 1; opts 1195 fs/fat/inode.c opts->shortname = VFAT_SFN_DISPLAY_WIN95 opts 1200 fs/fat/inode.c opts->quiet = 1; opts 1203 fs/fat/inode.c opts->showexec = 1; opts 1209 fs/fat/inode.c opts->sys_immutable = 1; opts 1214 fs/fat/inode.c opts->fs_uid = make_kuid(current_user_ns(), option); opts 1215 fs/fat/inode.c if (!uid_valid(opts->fs_uid)) opts 1221 fs/fat/inode.c opts->fs_gid = make_kgid(current_user_ns(), option); opts 1222 fs/fat/inode.c if (!gid_valid(opts->fs_gid)) opts 1228 fs/fat/inode.c opts->fs_fmask = opts->fs_dmask = option; opts 1233 fs/fat/inode.c opts->fs_dmask = option; opts 1238 fs/fat/inode.c opts->fs_fmask = option; opts 1243 fs/fat/inode.c opts->allow_utime = option & (S_IWGRP | S_IWOTH); opts 1248 fs/fat/inode.c opts->codepage = option; opts 1251 fs/fat/inode.c opts->flush = 1; opts 1263 fs/fat/inode.c opts->tz_set = 1; opts 1264 fs/fat/inode.c opts->time_offset = option; opts 1267 fs/fat/inode.c opts->tz_set = 1; opts 1268 fs/fat/inode.c opts->time_offset = 0; opts 1271 fs/fat/inode.c opts->errors = FAT_ERRORS_CONT; opts 1274 fs/fat/inode.c opts->errors = FAT_ERRORS_PANIC; opts 1277 fs/fat/inode.c opts->errors = FAT_ERRORS_RO; opts 1280 fs/fat/inode.c opts->nfs = FAT_NFS_STALE_RW; opts 1283 fs/fat/inode.c opts->nfs = FAT_NFS_NOSTALE_RO; opts 1286 fs/fat/inode.c opts->dos1xfloppy = 1; opts 1291 fs/fat/inode.c opts->dotsOK = 1; opts 1294 fs/fat/inode.c opts->dotsOK = 0; opts 1299 fs/fat/inode.c fat_reset_iocharset(opts); opts 1303 fs/fat/inode.c opts->iocharset = iocharset; opts 1306 fs/fat/inode.c opts->shortname = VFAT_SFN_DISPLAY_LOWER opts 1310 fs/fat/inode.c opts->shortname = VFAT_SFN_DISPLAY_WIN95 opts 1314 fs/fat/inode.c opts->shortname = VFAT_SFN_DISPLAY_WINNT opts 1318 fs/fat/inode.c opts->shortname = VFAT_SFN_DISPLAY_WINNT opts 1322 fs/fat/inode.c opts->utf8 = 0; opts 1325 fs/fat/inode.c opts->utf8 = 1; opts 1328 fs/fat/inode.c opts->unicode_xlate = 0; opts 1331 fs/fat/inode.c opts->unicode_xlate = 1; opts 1334 fs/fat/inode.c opts->numtail = 1; /* negated option */ opts 1337 fs/fat/inode.c opts->numtail = 0; /* negated option */ opts 1340 fs/fat/inode.c opts->rodir = 1; opts 1343 fs/fat/inode.c opts->discard = 1; opts 1364 fs/fat/inode.c if (!strcmp(opts->iocharset, "utf8")) { opts 1371 fs/fat/inode.c if (opts->allow_utime == (unsigned short)-1) opts 1372 fs/fat/inode.c opts->allow_utime = ~opts->fs_dmask & (S_IWGRP | S_IWOTH); opts 1373 fs/fat/inode.c if (opts->unicode_xlate) opts 1374 fs/fat/inode.c opts->utf8 = 0; opts 1375 fs/fat/inode.c if (opts->nfs == FAT_NFS_NOSTALE_RO) { opts 23 fs/fat/misc.c struct fat_mount_options *opts = &MSDOS_SB(sb)->options; opts 35 fs/fat/misc.c if (opts->errors == FAT_ERRORS_PANIC) opts 37 fs/fat/misc.c else if (opts->errors == FAT_ERRORS_RO && !sb_rdonly(sb)) { opts 20 fs/fat/namei_msdos.c unsigned char *res, struct fat_mount_options *opts) opts 33 fs/fat/namei_msdos.c if (opts->dotsOK) { opts 48 fs/fat/namei_msdos.c if (opts->name_check != 'r' && strchr(bad_chars, c)) opts 50 fs/fat/namei_msdos.c if (opts->name_check == 's' && strchr(bad_if_strict, c)) opts 52 fs/fat/namei_msdos.c if (c >= 'A' && c <= 'Z' && opts->name_check == 's') opts 69 fs/fat/namei_msdos.c *walk = (!opts->nocase && c >= 'a' && c <= 'z') ? c - 32 : c; opts 73 fs/fat/namei_msdos.c if (opts->name_check == 's' && len && c != '.') { opts 87 fs/fat/namei_msdos.c if (opts->name_check != 'r' && strchr(bad_chars, c)) opts 89 fs/fat/namei_msdos.c if (opts->name_check == 's' && opts 95 fs/fat/namei_msdos.c if (opts->name_check == 's') opts 99 fs/fat/namei_msdos.c if (c >= 'A' && c <= 'Z' && opts->name_check == 's') opts 102 fs/fat/namei_msdos.c if (!opts->nocase && c >= 'a' && c <= 'z') opts 109 fs/fat/namei_msdos.c if (opts->name_check == 's' && len) opts 331 fs/fat/namei_vfat.c struct fat_mount_options *opts = &MSDOS_SB(dir->i_sb)->options; opts 451 fs/fat/namei_vfat.c if (opts->shortname & VFAT_SFN_CREATE_WIN95) { opts 453 fs/fat/namei_vfat.c } else if (opts->shortname & VFAT_SFN_CREATE_WINNT) { opts 468 fs/fat/namei_vfat.c if (opts->numtail == 0) opts 585 fs/fat/namei_vfat.c struct fat_mount_options *opts = &sbi->options; opts 603 fs/fat/namei_vfat.c opts->unicode_xlate, opts->utf8, sbi->nls_io); opts 500 fs/hfsplus/hfsplus_fs.h void hfsplus_fill_defaults(struct hfsplus_sb_info *opts); opts 49 fs/hfsplus/options.c void hfsplus_fill_defaults(struct hfsplus_sb_info *opts) opts 51 fs/hfsplus/options.c if (!opts) opts 54 fs/hfsplus/options.c opts->creator = HFSPLUS_DEF_CR_TYPE; opts 55 fs/hfsplus/options.c opts->type = HFSPLUS_DEF_CR_TYPE; opts 56 fs/hfsplus/options.c opts->umask = current_umask(); opts 57 fs/hfsplus/options.c opts->uid = current_uid(); opts 58 fs/hfsplus/options.c opts->gid = current_gid(); opts 59 fs/hfsplus/options.c opts->part = -1; opts 60 fs/hfsplus/options.c opts->session = -1; opts 314 fs/hpfs/super.c static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, opts 321 fs/hpfs/super.c if (!opts) opts 326 fs/hpfs/super.c while ((p = strsep(&opts, ",")) != NULL) { opts 27 fs/jffs2/nodemgmt.c struct jffs2_mount_opts *opts = &c->mount_opts; opts 33 fs/jffs2/nodemgmt.c if (avail < 2 * opts->rp_size) opts 37 fs/jffs2/nodemgmt.c opts->rp_size, c->dirty_size, c->free_size, opts 41 fs/jffs2/nodemgmt.c if (avail > opts->rp_size) opts 87 fs/jffs2/super.c struct jffs2_mount_opts *opts = &c->mount_opts; opts 89 fs/jffs2/super.c if (opts->override_compr) opts 90 fs/jffs2/super.c seq_printf(s, ",compr=%s", jffs2_compr_name(opts->compr)); opts 91 fs/jffs2/super.c if (opts->rp_size) opts 92 fs/jffs2/super.c seq_printf(s, ",rp_size=%u", opts->rp_size / 1024); opts 1478 fs/ocfs2/super.c unsigned long opts = osb->s_mount_opt; opts 1481 fs/ocfs2/super.c if (opts & (OCFS2_MOUNT_HB_LOCAL | OCFS2_MOUNT_HB_GLOBAL)) { opts 1483 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_HB_LOCAL) opts 1490 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_NOINTR) opts 1493 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_DATA_WRITEBACK) opts 1498 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_BARRIER) opts 1501 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_ERRORS_PANIC) opts 1503 fs/ocfs2/super.c else if (opts & OCFS2_MOUNT_ERRORS_CONT) opts 1521 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_LOCALFLOCKS) opts 1527 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_USRQUOTA) opts 1529 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_GRPQUOTA) opts 1532 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_COHERENCY_BUFFERED) opts 1537 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_NOUSERXATTR) opts 1542 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_INODE64) opts 1545 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_POSIX_ACL) opts 1556 fs/ocfs2/super.c if (opts & OCFS2_MOUNT_JOURNAL_ASYNC_COMMIT) opts 725 fs/reiserfs/super.c long opts = REISERFS_SB(s)->s_mount_opt; opts 727 fs/reiserfs/super.c if (opts & (1 << REISERFS_LARGETAIL)) opts 729 fs/reiserfs/super.c else if (!(opts & (1 << REISERFS_SMALLTAIL))) opts 733 fs/reiserfs/super.c if (!(opts & (1 << REISERFS_BARRIER_FLUSH))) opts 737 fs/reiserfs/super.c if (opts & (1 << REISERFS_ERROR_CONTINUE)) opts 739 fs/reiserfs/super.c else if (opts & (1 << REISERFS_ERROR_PANIC)) opts 743 fs/reiserfs/super.c if (opts & (1 << REISERFS_DATA_LOG)) opts 745 fs/reiserfs/super.c else if (opts & (1 << REISERFS_DATA_WRITEBACK)) opts 749 fs/reiserfs/super.c if (opts & (1 << REISERFS_ATTRS)) opts 752 fs/reiserfs/super.c if (opts & (1 << REISERFS_XATTRS_USER)) opts 755 fs/reiserfs/super.c if (opts & (1 << REISERFS_EXPOSE_PRIVROOT)) opts 758 fs/reiserfs/super.c if (opts & (1 << REISERFS_POSIXACL)) opts 771 fs/reiserfs/super.c else if (opts & (1 << REISERFS_USRQUOTA)) opts 776 fs/reiserfs/super.c else if (opts & (1 << REISERFS_GRPQUOTA)) opts 787 fs/reiserfs/super.c if (opts & (1 << REISERFS_NO_BORDER)) opts 789 fs/reiserfs/super.c if (opts & (1 << REISERFS_NO_UNHASHED_RELOCATION)) opts 791 fs/reiserfs/super.c if (opts & (1 << REISERFS_HASHED_RELOCATION)) opts 793 fs/reiserfs/super.c if (opts & (1 << REISERFS_TEST4)) opts 979 fs/reiserfs/super.c static int reiserfs_getopt(struct super_block *s, char **cur, opt_desc_t * opts, opts 1017 fs/reiserfs/super.c for (opt = opts; opt->option_name; opt++) { opts 1133 fs/reiserfs/super.c opt_desc_t opts[] = { opts 1189 fs/reiserfs/super.c c = reiserfs_getopt(s, &pos, opts, &arg, mount_options); opts 42 fs/squashfs/xz_wrapper.c struct comp_opts *opts; opts 45 fs/squashfs/xz_wrapper.c opts = kmalloc(sizeof(*opts), GFP_KERNEL); opts 46 fs/squashfs/xz_wrapper.c if (opts == NULL) { opts 58 fs/squashfs/xz_wrapper.c opts->dict_size = le32_to_cpu(comp_opts->dictionary_size); opts 61 fs/squashfs/xz_wrapper.c n = ffs(opts->dict_size) - 1; opts 62 fs/squashfs/xz_wrapper.c if (opts->dict_size != (1 << n) && opts->dict_size != (1 << n) + opts 69 fs/squashfs/xz_wrapper.c opts->dict_size = max_t(int, msblk->block_size, opts 72 fs/squashfs/xz_wrapper.c return opts; opts 75 fs/squashfs/xz_wrapper.c kfree(opts); opts 162 fs/tracefs/inode.c static int tracefs_parse_options(char *data, struct tracefs_mount_opts *opts) opts 171 fs/tracefs/inode.c opts->mode = TRACEFS_DEFAULT_MODE; opts 185 fs/tracefs/inode.c opts->uid = uid; opts 193 fs/tracefs/inode.c opts->gid = gid; opts 198 fs/tracefs/inode.c opts->mode = option & S_IALLUGO; opts 214 fs/tracefs/inode.c struct tracefs_mount_opts *opts = &fsi->mount_opts; opts 217 fs/tracefs/inode.c inode->i_mode |= opts->mode; opts 219 fs/tracefs/inode.c inode->i_uid = opts->uid; opts 220 fs/tracefs/inode.c inode->i_gid = opts->gid; opts 244 fs/tracefs/inode.c struct tracefs_mount_opts *opts = &fsi->mount_opts; opts 246 fs/tracefs/inode.c if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) opts 248 fs/tracefs/inode.c from_kuid_munged(&init_user_ns, opts->uid)); opts 249 fs/tracefs/inode.c if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) opts 251 fs/tracefs/inode.c from_kgid_munged(&init_user_ns, opts->gid)); opts 252 fs/tracefs/inode.c if (opts->mode != TRACEFS_DEFAULT_MODE) opts 253 fs/tracefs/inode.c seq_printf(m, ",mode=%o", opts->mode); opts 1480 include/linux/lsm_hooks.h unsigned int opts); opts 1191 include/linux/mtd/rawnand.h #define LEGACY_ID_NAND(nm, devid, chipsz, erasesz, opts) \ opts 1193 include/linux/mtd/rawnand.h .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) } opts 1205 include/linux/mtd/rawnand.h #define EXTENDED_ID_NAND(nm, devid, chipsz, opts) \ opts 1207 include/linux/mtd/rawnand.h .options = (opts) } opts 279 include/linux/of.h const char **opts); opts 616 include/linux/of.h const char **opts) opts 83 include/linux/phy/phy.h int (*configure)(struct phy *phy, union phy_configure_opts *opts); opts 102 include/linux/phy/phy.h union phy_configure_opts *opts); opts 210 include/linux/phy/phy.h int phy_configure(struct phy *phy, union phy_configure_opts *opts); opts 212 include/linux/phy/phy.h union phy_configure_opts *opts); opts 358 include/linux/phy/phy.h union phy_configure_opts *opts) opts 367 include/linux/phy/phy.h union phy_configure_opts *opts) opts 61 include/linux/power/bq27xxx_battery.h u32 opts; opts 133 include/linux/security.h int cap, unsigned int opts); opts 272 include/linux/security.h unsigned int opts); opts 539 include/linux/security.h unsigned int opts) opts 541 include/linux/security.h return cap_capable(cred, ns, cap, opts); opts 47 include/net/netfilter/nf_synproxy.h struct synproxy_options *opts); opts 50 include/net/netfilter/nf_synproxy.h struct synproxy_options *opts); opts 54 include/net/netfilter/nf_synproxy.h const struct synproxy_options *opts); opts 59 include/net/netfilter/nf_synproxy.h struct synproxy_options *opts, u32 recv_seq); opts 72 include/net/netfilter/nf_synproxy.h const struct synproxy_options *opts); opts 76 include/net/netfilter/nf_synproxy.h struct synproxy_options *opts, u32 recv_seq); opts 13 include/uapi/linux/netfilter_ipv6/ip6t_opts.h __u16 opts[IP6T_OPTS_OPTSNR]; /* opts */ opts 604 kernel/bpf/inode.c struct bpf_mount_opts *opts = fc->fs_private; opts 618 kernel/bpf/inode.c opts->mode = result.uint_32 & S_IALLUGO; opts 628 kernel/bpf/inode.c struct bpf_mount_opts *opts = fc->fs_private; opts 641 kernel/bpf/inode.c inode->i_mode |= S_ISVTX | opts->mode; opts 667 kernel/bpf/inode.c struct bpf_mount_opts *opts; opts 669 kernel/bpf/inode.c opts = kzalloc(sizeof(struct bpf_mount_opts), GFP_KERNEL); opts 670 kernel/bpf/inode.c if (!opts) opts 673 kernel/bpf/inode.c opts->mode = S_IRWXUGO; opts 675 kernel/bpf/inode.c fc->fs_private = opts; opts 366 kernel/capability.c unsigned int opts) opts 375 kernel/capability.c capable = security_capable(current_cred(), ns, cap, opts); opts 53 kernel/trace/blktrace.c .opts = blk_tracer_opts, opts 1839 kernel/trace/trace.c type->flags->opts = dummy_tracer_opt; opts 1841 kernel/trace/trace.c if (!type->flags->opts) opts 1842 kernel/trace/trace.c type->flags->opts = dummy_tracer_opt; opts 4534 kernel/trace/trace.c trace_opts = tr->current_trace->flags->opts; opts 4556 kernel/trace/trace.c struct tracer_opt *opts, int neg) opts 4561 kernel/trace/trace.c ret = trace->set_flag(tr, tracer_flags->val, opts->bit, !neg); opts 4566 kernel/trace/trace.c tracer_flags->val &= ~opts->bit; opts 4568 kernel/trace/trace.c tracer_flags->val |= opts->bit; opts 4577 kernel/trace/trace.c struct tracer_opt *opts = NULL; opts 4580 kernel/trace/trace.c for (i = 0; tracer_flags->opts[i].name; i++) { opts 4581 kernel/trace/trace.c opts = &tracer_flags->opts[i]; opts 4583 kernel/trace/trace.c if (strcmp(cmp, opts->name) == 0) opts 4584 kernel/trace/trace.c return __set_tracer_option(tr, trace->flags, opts, neg); opts 8073 kernel/trace/trace.c struct tracer_opt *opts; opts 8082 kernel/trace/trace.c if (!flags || !flags->opts) opts 8098 kernel/trace/trace.c opts = flags->opts; opts 8100 kernel/trace/trace.c for (cnt = 0; opts[cnt].name; cnt++) opts 8119 kernel/trace/trace.c for (cnt = 0; opts[cnt].name; cnt++) { opts 8121 kernel/trace/trace.c &opts[cnt]); opts 8124 kernel/trace/trace.c opts[cnt].name); opts 431 kernel/trace/trace.h struct tracer_opt *opts; opts 217 kernel/trace/trace_functions.c .opts = func_opts opts 77 kernel/trace/trace_functions_graph.c .opts = trace_opts opts 32 kernel/trace/trace_nop.c .opts = nop_opts opts 132 net/9p/client.c static int parse_opts(char *opts, struct p9_client *clnt) opts 144 net/9p/client.c if (!opts) opts 147 net/9p/client.c tmp_options = kstrdup(opts, GFP_KERNEL); opts 739 net/9p/trans_fd.c static int parse_opts(char *params, struct p9_fd_opts *opts) opts 746 net/9p/trans_fd.c opts->port = P9_PORT; opts 747 net/9p/trans_fd.c opts->rfd = ~0; opts 748 net/9p/trans_fd.c opts->wfd = ~0; opts 749 net/9p/trans_fd.c opts->privport = false; opts 778 net/9p/trans_fd.c opts->port = option; opts 781 net/9p/trans_fd.c opts->rfd = option; opts 784 net/9p/trans_fd.c opts->wfd = option; opts 787 net/9p/trans_fd.c opts->privport = true; opts 949 net/9p/trans_fd.c struct p9_fd_opts opts; opts 951 net/9p/trans_fd.c err = parse_opts(args, &opts); opts 960 net/9p/trans_fd.c client->trans_opts.tcp.port = opts.port; opts 961 net/9p/trans_fd.c client->trans_opts.tcp.privport = opts.privport; opts 964 net/9p/trans_fd.c sin_server.sin_port = htons(opts.port); opts 973 net/9p/trans_fd.c if (opts.privport) { opts 1040 net/9p/trans_fd.c struct p9_fd_opts opts; opts 1042 net/9p/trans_fd.c parse_opts(args, &opts); opts 1043 net/9p/trans_fd.c client->trans_opts.fd.rfd = opts.rfd; opts 1044 net/9p/trans_fd.c client->trans_opts.fd.wfd = opts.wfd; opts 1046 net/9p/trans_fd.c if (opts.rfd == ~0 || opts.wfd == ~0) { opts 1051 net/9p/trans_fd.c err = p9_fd_open(client, opts.rfd, opts.wfd); opts 174 net/9p/trans_rdma.c static int parse_opts(char *params, struct p9_rdma_opts *opts) opts 181 net/9p/trans_rdma.c opts->port = P9_PORT; opts 182 net/9p/trans_rdma.c opts->sq_depth = P9_RDMA_SQ_DEPTH; opts 183 net/9p/trans_rdma.c opts->rq_depth = P9_RDMA_RQ_DEPTH; opts 184 net/9p/trans_rdma.c opts->timeout = P9_RDMA_TIMEOUT; opts 185 net/9p/trans_rdma.c opts->privport = false; opts 214 net/9p/trans_rdma.c opts->port = option; opts 217 net/9p/trans_rdma.c opts->sq_depth = option; opts 220 net/9p/trans_rdma.c opts->rq_depth = option; opts 223 net/9p/trans_rdma.c opts->timeout = option; opts 226 net/9p/trans_rdma.c opts->privport = true; opts 233 net/9p/trans_rdma.c opts->rq_depth = max(opts->rq_depth, opts->sq_depth); opts 562 net/9p/trans_rdma.c static struct p9_trans_rdma *alloc_rdma(struct p9_rdma_opts *opts) opts 570 net/9p/trans_rdma.c rdma->port = opts->port; opts 571 net/9p/trans_rdma.c rdma->privport = opts->privport; opts 572 net/9p/trans_rdma.c rdma->sq_depth = opts->sq_depth; opts 573 net/9p/trans_rdma.c rdma->rq_depth = opts->rq_depth; opts 574 net/9p/trans_rdma.c rdma->timeout = opts->timeout; opts 629 net/9p/trans_rdma.c struct p9_rdma_opts opts; opts 638 net/9p/trans_rdma.c err = parse_opts(args, &opts); opts 643 net/9p/trans_rdma.c rdma = alloc_rdma(&opts); opts 657 net/9p/trans_rdma.c if (opts.privport) { opts 669 net/9p/trans_rdma.c rdma->addr.sin_port = htons(opts.port); opts 689 net/9p/trans_rdma.c opts.sq_depth + opts.rq_depth + 1, opts 703 net/9p/trans_rdma.c qp_attr.cap.max_send_wr = opts.sq_depth; opts 704 net/9p/trans_rdma.c qp_attr.cap.max_recv_wr = opts.rq_depth; opts 397 net/bluetooth/l2cap_sock.c struct l2cap_options opts; opts 421 net/bluetooth/l2cap_sock.c memset(&opts, 0, sizeof(opts)); opts 422 net/bluetooth/l2cap_sock.c opts.imtu = chan->imtu; opts 423 net/bluetooth/l2cap_sock.c opts.omtu = chan->omtu; opts 424 net/bluetooth/l2cap_sock.c opts.flush_to = chan->flush_to; opts 425 net/bluetooth/l2cap_sock.c opts.mode = chan->mode; opts 426 net/bluetooth/l2cap_sock.c opts.fcs = chan->fcs; opts 427 net/bluetooth/l2cap_sock.c opts.max_tx = chan->max_tx; opts 428 net/bluetooth/l2cap_sock.c opts.txwin_size = chan->tx_win; opts 430 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, len, sizeof(opts)); opts 431 net/bluetooth/l2cap_sock.c if (copy_to_user(optval, (char *) &opts, len)) opts 636 net/bluetooth/l2cap_sock.c struct l2cap_options opts; opts 656 net/bluetooth/l2cap_sock.c opts.imtu = chan->imtu; opts 657 net/bluetooth/l2cap_sock.c opts.omtu = chan->omtu; opts 658 net/bluetooth/l2cap_sock.c opts.flush_to = chan->flush_to; opts 659 net/bluetooth/l2cap_sock.c opts.mode = chan->mode; opts 660 net/bluetooth/l2cap_sock.c opts.fcs = chan->fcs; opts 661 net/bluetooth/l2cap_sock.c opts.max_tx = chan->max_tx; opts 662 net/bluetooth/l2cap_sock.c opts.txwin_size = chan->tx_win; opts 664 net/bluetooth/l2cap_sock.c len = min_t(unsigned int, sizeof(opts), optlen); opts 665 net/bluetooth/l2cap_sock.c if (copy_from_user((char *) &opts, optval, len)) { opts 670 net/bluetooth/l2cap_sock.c if (opts.txwin_size > L2CAP_DEFAULT_EXT_WINDOW) { opts 675 net/bluetooth/l2cap_sock.c if (!l2cap_valid_mtu(chan, opts.imtu)) { opts 680 net/bluetooth/l2cap_sock.c chan->mode = opts.mode; opts 697 net/bluetooth/l2cap_sock.c chan->imtu = opts.imtu; opts 698 net/bluetooth/l2cap_sock.c chan->omtu = opts.omtu; opts 699 net/bluetooth/l2cap_sock.c chan->fcs = opts.fcs; opts 700 net/bluetooth/l2cap_sock.c chan->max_tx = opts.max_tx; opts 701 net/bluetooth/l2cap_sock.c chan->tx_win = opts.txwin_size; opts 702 net/bluetooth/l2cap_sock.c chan->flush_to = opts.flush_to; opts 862 net/bluetooth/sco.c struct sco_options opts; opts 882 net/bluetooth/sco.c opts.mtu = sco_pi(sk)->conn->mtu; opts 884 net/bluetooth/sco.c BT_DBG("mtu %d", opts.mtu); opts 886 net/bluetooth/sco.c len = min_t(unsigned int, len, sizeof(opts)); opts 887 net/bluetooth/sco.c if (copy_to_user(optval, (char *)&opts, len)) opts 3274 net/ceph/osd_client.c struct ceph_options *opts = osdc->client->options; opts 3275 net/ceph/osd_client.c unsigned long cutoff = jiffies - opts->osd_keepalive_timeout; opts 3276 net/ceph/osd_client.c unsigned long expiry_cutoff = jiffies - opts->osd_request_timeout; opts 3303 net/ceph/osd_client.c if (opts->osd_request_timeout && opts 3328 net/ceph/osd_client.c if (opts->osd_request_timeout) { opts 4679 net/ceph/osd_client.c struct ceph_options *opts = osdc->client->options; opts 4701 net/ceph/osd_client.c ret = wait_request_timeout(req, opts->mount_timeout); opts 18 net/ipv4/netfilter/ipt_SYNPROXY.c struct synproxy_options opts = {}; opts 28 net/ipv4/netfilter/ipt_SYNPROXY.c if (!synproxy_parse_options(skb, par->thoff, th, &opts)) opts 36 net/ipv4/netfilter/ipt_SYNPROXY.c opts.options |= XT_SYNPROXY_OPT_ECN; opts 38 net/ipv4/netfilter/ipt_SYNPROXY.c opts.options &= info->options; opts 39 net/ipv4/netfilter/ipt_SYNPROXY.c opts.mss_encode = opts.mss_option; opts 40 net/ipv4/netfilter/ipt_SYNPROXY.c opts.mss_option = info->mss; opts 41 net/ipv4/netfilter/ipt_SYNPROXY.c if (opts.options & XT_SYNPROXY_OPT_TIMESTAMP) opts 42 net/ipv4/netfilter/ipt_SYNPROXY.c synproxy_init_timestamp_cookie(info, &opts); opts 44 net/ipv4/netfilter/ipt_SYNPROXY.c opts.options &= ~(XT_SYNPROXY_OPT_WSCALE | opts 48 net/ipv4/netfilter/ipt_SYNPROXY.c synproxy_send_client_synack(net, skb, th, &opts); opts 53 net/ipv4/netfilter/ipt_SYNPROXY.c if (synproxy_recv_client_ack(net, skb, th, &opts, ntohl(th->seq))) { opts 458 net/ipv4/tcp_output.c struct tcp_out_options *opts) opts 460 net/ipv4/tcp_output.c u16 options = opts->options; /* mungable copy */ opts 466 net/ipv4/tcp_output.c opts->hash_location = (__u8 *)ptr; opts 470 net/ipv4/tcp_output.c if (unlikely(opts->mss)) { opts 473 net/ipv4/tcp_output.c opts->mss); opts 489 net/ipv4/tcp_output.c *ptr++ = htonl(opts->tsval); opts 490 net/ipv4/tcp_output.c *ptr++ = htonl(opts->tsecr); opts 504 net/ipv4/tcp_output.c opts->ws); opts 507 net/ipv4/tcp_output.c if (unlikely(opts->num_sack_blocks)) { opts 515 net/ipv4/tcp_output.c (TCPOLEN_SACK_BASE + (opts->num_sack_blocks * opts 518 net/ipv4/tcp_output.c for (this_sack = 0; this_sack < opts->num_sack_blocks; opts 528 net/ipv4/tcp_output.c struct tcp_fastopen_cookie *foc = opts->fastopen_cookie; opts 555 net/ipv4/tcp_output.c struct tcp_out_options *opts, opts 562 net/ipv4/tcp_output.c opts->options |= OPTION_SMC; opts 572 net/ipv4/tcp_output.c struct tcp_out_options *opts, opts 579 net/ipv4/tcp_output.c opts->options |= OPTION_SMC; opts 591 net/ipv4/tcp_output.c struct tcp_out_options *opts, opts 604 net/ipv4/tcp_output.c opts->options |= OPTION_MD5; opts 619 net/ipv4/tcp_output.c opts->mss = tcp_advertise_mss(sk); opts 623 net/ipv4/tcp_output.c opts->options |= OPTION_TS; opts 624 net/ipv4/tcp_output.c opts->tsval = tcp_skb_timestamp(skb) + tp->tsoffset; opts 625 net/ipv4/tcp_output.c opts->tsecr = tp->rx_opt.ts_recent; opts 629 net/ipv4/tcp_output.c opts->ws = tp->rx_opt.rcv_wscale; opts 630 net/ipv4/tcp_output.c opts->options |= OPTION_WSCALE; opts 634 net/ipv4/tcp_output.c opts->options |= OPTION_SACK_ADVERTISE; opts 635 net/ipv4/tcp_output.c if (unlikely(!(OPTION_TS & opts->options))) opts 646 net/ipv4/tcp_output.c opts->options |= OPTION_FAST_OPEN_COOKIE; opts 647 net/ipv4/tcp_output.c opts->fastopen_cookie = &fastopen->cookie; opts 654 net/ipv4/tcp_output.c smc_set_option(tp, opts, &remaining); opts 663 net/ipv4/tcp_output.c struct tcp_out_options *opts, opts 672 net/ipv4/tcp_output.c opts->options |= OPTION_MD5; opts 685 net/ipv4/tcp_output.c opts->mss = mss; opts 689 net/ipv4/tcp_output.c opts->ws = ireq->rcv_wscale; opts 690 net/ipv4/tcp_output.c opts->options |= OPTION_WSCALE; opts 694 net/ipv4/tcp_output.c opts->options |= OPTION_TS; opts 695 net/ipv4/tcp_output.c opts->tsval = tcp_skb_timestamp(skb) + tcp_rsk(req)->ts_off; opts 696 net/ipv4/tcp_output.c opts->tsecr = req->ts_recent; opts 700 net/ipv4/tcp_output.c opts->options |= OPTION_SACK_ADVERTISE; opts 711 net/ipv4/tcp_output.c opts->options |= OPTION_FAST_OPEN_COOKIE; opts 712 net/ipv4/tcp_output.c opts->fastopen_cookie = foc; opts 717 net/ipv4/tcp_output.c smc_set_option_cond(tcp_sk(sk), ireq, opts, &remaining); opts 726 net/ipv4/tcp_output.c struct tcp_out_options *opts, opts 733 net/ipv4/tcp_output.c opts->options = 0; opts 741 net/ipv4/tcp_output.c opts->options |= OPTION_MD5; opts 748 net/ipv4/tcp_output.c opts->options |= OPTION_TS; opts 749 net/ipv4/tcp_output.c opts->tsval = skb ? tcp_skb_timestamp(skb) + tp->tsoffset : 0; opts 750 net/ipv4/tcp_output.c opts->tsecr = tp->rx_opt.ts_recent; opts 757 net/ipv4/tcp_output.c opts->num_sack_blocks = opts 761 net/ipv4/tcp_output.c if (likely(opts->num_sack_blocks)) opts 763 net/ipv4/tcp_output.c opts->num_sack_blocks * TCPOLEN_SACK_PERBLOCK; opts 1024 net/ipv4/tcp_output.c struct tcp_out_options opts; opts 1059 net/ipv4/tcp_output.c memset(&opts, 0, sizeof(opts)); opts 1062 net/ipv4/tcp_output.c tcp_options_size = tcp_syn_options(sk, skb, &opts, &md5); opts 1064 net/ipv4/tcp_output.c tcp_options_size = tcp_established_options(sk, skb, &opts, opts 1129 net/ipv4/tcp_output.c tcp_options_write((__be32 *)(th + 1), tp, &opts); opts 1144 net/ipv4/tcp_output.c tp->af_specific->calc_md5_hash(opts.hash_location, opts 1599 net/ipv4/tcp_output.c struct tcp_out_options opts; opts 1610 net/ipv4/tcp_output.c header_len = tcp_established_options(sk, NULL, &opts, &md5) + opts 3274 net/ipv4/tcp_output.c struct tcp_out_options opts; opts 3310 net/ipv4/tcp_output.c memset(&opts, 0, sizeof(opts)); opts 3328 net/ipv4/tcp_output.c tcp_header_size = tcp_synack_options(sk, req, mss, skb, &opts, md5, opts 3349 net/ipv4/tcp_output.c tcp_options_write((__be32 *)(th + 1), NULL, &opts); opts 3356 net/ipv4/tcp_output.c tcp_rsk(req)->af_specific->calc_md5_hash(opts.hash_location, opts 18 net/ipv6/netfilter/ip6t_SYNPROXY.c struct synproxy_options opts = {}; opts 28 net/ipv6/netfilter/ip6t_SYNPROXY.c if (!synproxy_parse_options(skb, par->thoff, th, &opts)) opts 36 net/ipv6/netfilter/ip6t_SYNPROXY.c opts.options |= XT_SYNPROXY_OPT_ECN; opts 38 net/ipv6/netfilter/ip6t_SYNPROXY.c opts.options &= info->options; opts 39 net/ipv6/netfilter/ip6t_SYNPROXY.c opts.mss_encode = opts.mss_option; opts 40 net/ipv6/netfilter/ip6t_SYNPROXY.c opts.mss_option = info->mss; opts 41 net/ipv6/netfilter/ip6t_SYNPROXY.c if (opts.options & XT_SYNPROXY_OPT_TIMESTAMP) opts 42 net/ipv6/netfilter/ip6t_SYNPROXY.c synproxy_init_timestamp_cookie(info, &opts); opts 44 net/ipv6/netfilter/ip6t_SYNPROXY.c opts.options &= ~(XT_SYNPROXY_OPT_WSCALE | opts 48 net/ipv6/netfilter/ip6t_SYNPROXY.c synproxy_send_client_synack_ipv6(net, skb, th, &opts); opts 54 net/ipv6/netfilter/ip6t_SYNPROXY.c if (synproxy_recv_client_ack_ipv6(net, skb, th, &opts, opts 111 net/ipv6/netfilter/ip6t_hbh.c if (*tp != (optinfo->opts[temp] & 0xFF00) >> 8) { opts 113 net/ipv6/netfilter/ip6t_hbh.c (optinfo->opts[temp] & 0xFF00) >> 8); opts 130 net/ipv6/netfilter/ip6t_hbh.c spec_len = optinfo->opts[temp] & 0x00FF; opts 29 net/netfilter/nf_synproxy_core.c const struct tcphdr *th, struct synproxy_options *opts) opts 38 net/netfilter/nf_synproxy_core.c opts->options = 0; opts 59 net/netfilter/nf_synproxy_core.c opts->mss_option = get_unaligned_be16(ptr); opts 60 net/netfilter/nf_synproxy_core.c opts->options |= NF_SYNPROXY_OPT_MSS; opts 65 net/netfilter/nf_synproxy_core.c opts->wscale = *ptr; opts 66 net/netfilter/nf_synproxy_core.c if (opts->wscale > TCP_MAX_WSCALE) opts 67 net/netfilter/nf_synproxy_core.c opts->wscale = TCP_MAX_WSCALE; opts 68 net/netfilter/nf_synproxy_core.c opts->options |= NF_SYNPROXY_OPT_WSCALE; opts 73 net/netfilter/nf_synproxy_core.c opts->tsval = get_unaligned_be32(ptr); opts 74 net/netfilter/nf_synproxy_core.c opts->tsecr = get_unaligned_be32(ptr + 4); opts 75 net/netfilter/nf_synproxy_core.c opts->options |= NF_SYNPROXY_OPT_TIMESTAMP; opts 80 net/netfilter/nf_synproxy_core.c opts->options |= NF_SYNPROXY_OPT_SACK_PERM; opts 93 net/netfilter/nf_synproxy_core.c synproxy_options_size(const struct synproxy_options *opts) opts 97 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_MSS) opts 99 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_TIMESTAMP) opts 101 net/netfilter/nf_synproxy_core.c else if (opts->options & NF_SYNPROXY_OPT_SACK_PERM) opts 103 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_WSCALE) opts 110 net/netfilter/nf_synproxy_core.c synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts) opts 113 net/netfilter/nf_synproxy_core.c u8 options = opts->options; opts 118 net/netfilter/nf_synproxy_core.c opts->mss_option); opts 132 net/netfilter/nf_synproxy_core.c *ptr++ = htonl(opts->tsval); opts 133 net/netfilter/nf_synproxy_core.c *ptr++ = htonl(opts->tsecr); opts 144 net/netfilter/nf_synproxy_core.c opts->wscale); opts 148 net/netfilter/nf_synproxy_core.c struct synproxy_options *opts) opts 150 net/netfilter/nf_synproxy_core.c opts->tsecr = opts->tsval; opts 151 net/netfilter/nf_synproxy_core.c opts->tsval = tcp_time_stamp_raw() & ~0x3f; opts 153 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_WSCALE) { opts 154 net/netfilter/nf_synproxy_core.c opts->tsval |= opts->wscale; opts 155 net/netfilter/nf_synproxy_core.c opts->wscale = info->wscale; opts 157 net/netfilter/nf_synproxy_core.c opts->tsval |= 0xf; opts 159 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_SACK_PERM) opts 160 net/netfilter/nf_synproxy_core.c opts->tsval |= 1 << 4; opts 162 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_ECN) opts 163 net/netfilter/nf_synproxy_core.c opts->tsval |= 1 << 5; opts 168 net/netfilter/nf_synproxy_core.c synproxy_check_timestamp_cookie(struct synproxy_options *opts) opts 170 net/netfilter/nf_synproxy_core.c opts->wscale = opts->tsecr & 0xf; opts 171 net/netfilter/nf_synproxy_core.c if (opts->wscale != 0xf) opts 172 net/netfilter/nf_synproxy_core.c opts->options |= NF_SYNPROXY_OPT_WSCALE; opts 174 net/netfilter/nf_synproxy_core.c opts->options |= opts->tsecr & (1 << 4) ? NF_SYNPROXY_OPT_SACK_PERM : 0; opts 176 net/netfilter/nf_synproxy_core.c opts->options |= opts->tsecr & (1 << 5) ? NF_SYNPROXY_OPT_ECN : 0; opts 467 net/netfilter/nf_synproxy_core.c const struct synproxy_options *opts) opts 473 net/netfilter/nf_synproxy_core.c u16 mss = opts->mss_encode; opts 477 net/netfilter/nf_synproxy_core.c tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); opts 493 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_ECN) opts 500 net/netfilter/nf_synproxy_core.c synproxy_build_options(nth, opts); opts 510 net/netfilter/nf_synproxy_core.c const struct synproxy_options *opts, u32 recv_seq) opts 520 net/netfilter/nf_synproxy_core.c tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); opts 539 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_ECN) opts 546 net/netfilter/nf_synproxy_core.c synproxy_build_options(nth, opts); opts 556 net/netfilter/nf_synproxy_core.c const struct synproxy_options *opts) opts 565 net/netfilter/nf_synproxy_core.c tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); opts 586 net/netfilter/nf_synproxy_core.c synproxy_build_options(nth, opts); opts 594 net/netfilter/nf_synproxy_core.c const struct synproxy_options *opts) opts 603 net/netfilter/nf_synproxy_core.c tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); opts 620 net/netfilter/nf_synproxy_core.c nth->window = htons(ntohs(th->window) >> opts->wscale); opts 624 net/netfilter/nf_synproxy_core.c synproxy_build_options(nth, opts); opts 633 net/netfilter/nf_synproxy_core.c struct synproxy_options *opts, u32 recv_seq) opts 645 net/netfilter/nf_synproxy_core.c opts->mss_option = mss; opts 646 net/netfilter/nf_synproxy_core.c opts->options |= NF_SYNPROXY_OPT_MSS; opts 648 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_TIMESTAMP) opts 649 net/netfilter/nf_synproxy_core.c synproxy_check_timestamp_cookie(opts); opts 651 net/netfilter/nf_synproxy_core.c synproxy_send_server_syn(net, skb, th, opts, recv_seq); opts 665 net/netfilter/nf_synproxy_core.c struct synproxy_options opts = {}; opts 710 net/netfilter/nf_synproxy_core.c if (!synproxy_parse_options(skb, thoff, th, &opts)) opts 719 net/netfilter/nf_synproxy_core.c if (synproxy_recv_client_ack(net, skb, th, &opts, opts 730 net/netfilter/nf_synproxy_core.c if (opts.options & NF_SYNPROXY_OPT_TIMESTAMP) opts 731 net/netfilter/nf_synproxy_core.c synproxy->its = opts.tsecr; opts 739 net/netfilter/nf_synproxy_core.c if (!synproxy_parse_options(skb, thoff, th, &opts)) opts 742 net/netfilter/nf_synproxy_core.c if (opts.options & NF_SYNPROXY_OPT_TIMESTAMP) { opts 743 net/netfilter/nf_synproxy_core.c synproxy->tsoff = opts.tsval - synproxy->its; opts 747 net/netfilter/nf_synproxy_core.c opts.options &= ~(NF_SYNPROXY_OPT_MSS | opts 751 net/netfilter/nf_synproxy_core.c swap(opts.tsval, opts.tsecr); opts 752 net/netfilter/nf_synproxy_core.c synproxy_send_server_ack(net, state, skb, th, &opts); opts 757 net/netfilter/nf_synproxy_core.c swap(opts.tsval, opts.tsecr); opts 758 net/netfilter/nf_synproxy_core.c synproxy_send_client_ack(net, skb, th, &opts); opts 881 net/netfilter/nf_synproxy_core.c const struct synproxy_options *opts) opts 887 net/netfilter/nf_synproxy_core.c u16 mss = opts->mss_encode; opts 891 net/netfilter/nf_synproxy_core.c tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); opts 907 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_ECN) opts 914 net/netfilter/nf_synproxy_core.c synproxy_build_options(nth, opts); opts 925 net/netfilter/nf_synproxy_core.c const struct synproxy_options *opts, u32 recv_seq) opts 935 net/netfilter/nf_synproxy_core.c tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); opts 954 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_ECN) opts 961 net/netfilter/nf_synproxy_core.c synproxy_build_options(nth, opts); opts 971 net/netfilter/nf_synproxy_core.c const struct synproxy_options *opts) opts 980 net/netfilter/nf_synproxy_core.c tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); opts 1001 net/netfilter/nf_synproxy_core.c synproxy_build_options(nth, opts); opts 1010 net/netfilter/nf_synproxy_core.c const struct synproxy_options *opts) opts 1019 net/netfilter/nf_synproxy_core.c tcp_hdr_size = sizeof(*nth) + synproxy_options_size(opts); opts 1036 net/netfilter/nf_synproxy_core.c nth->window = htons(ntohs(th->window) >> opts->wscale); opts 1040 net/netfilter/nf_synproxy_core.c synproxy_build_options(nth, opts); opts 1051 net/netfilter/nf_synproxy_core.c struct synproxy_options *opts, u32 recv_seq) opts 1063 net/netfilter/nf_synproxy_core.c opts->mss_option = mss; opts 1064 net/netfilter/nf_synproxy_core.c opts->options |= NF_SYNPROXY_OPT_MSS; opts 1066 net/netfilter/nf_synproxy_core.c if (opts->options & NF_SYNPROXY_OPT_TIMESTAMP) opts 1067 net/netfilter/nf_synproxy_core.c synproxy_check_timestamp_cookie(opts); opts 1069 net/netfilter/nf_synproxy_core.c synproxy_send_server_syn_ipv6(net, skb, th, opts, recv_seq); opts 1083 net/netfilter/nf_synproxy_core.c struct synproxy_options opts = {}; opts 1134 net/netfilter/nf_synproxy_core.c if (!synproxy_parse_options(skb, thoff, th, &opts)) opts 1143 net/netfilter/nf_synproxy_core.c if (synproxy_recv_client_ack_ipv6(net, skb, th, &opts, opts 1154 net/netfilter/nf_synproxy_core.c if (opts.options & NF_SYNPROXY_OPT_TIMESTAMP) opts 1155 net/netfilter/nf_synproxy_core.c synproxy->its = opts.tsecr; opts 1163 net/netfilter/nf_synproxy_core.c if (!synproxy_parse_options(skb, thoff, th, &opts)) opts 1166 net/netfilter/nf_synproxy_core.c if (opts.options & NF_SYNPROXY_OPT_TIMESTAMP) { opts 1167 net/netfilter/nf_synproxy_core.c synproxy->tsoff = opts.tsval - synproxy->its; opts 1171 net/netfilter/nf_synproxy_core.c opts.options &= ~(NF_SYNPROXY_OPT_MSS | opts 1175 net/netfilter/nf_synproxy_core.c swap(opts.tsval, opts.tsecr); opts 1176 net/netfilter/nf_synproxy_core.c synproxy_send_server_ack_ipv6(net, state, skb, th, &opts); opts 1181 net/netfilter/nf_synproxy_core.c swap(opts.tsval, opts.tsecr); opts 1182 net/netfilter/nf_synproxy_core.c synproxy_send_client_ack_ipv6(net, skb, th, &opts); opts 168 net/netfilter/nfnetlink_osf.c unsigned char *opts, opts 188 net/netfilter/nfnetlink_osf.c sizeof(struct tcphdr), ctx->optsize, opts); opts 202 net/netfilter/nfnetlink_osf.c unsigned char opts[MAX_IPOPTLEN]; opts 212 net/netfilter/nfnetlink_osf.c tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts, &_tcph); opts 265 net/netfilter/nfnetlink_osf.c unsigned char opts[MAX_IPOPTLEN]; opts 273 net/netfilter/nfnetlink_osf.c tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts, &_tcph); opts 23 net/netfilter/nft_synproxy.c static void nft_synproxy_tcp_options(struct synproxy_options *opts, opts 31 net/netfilter/nft_synproxy.c opts->options |= NF_SYNPROXY_OPT_ECN; opts 33 net/netfilter/nft_synproxy.c opts->options &= priv->info.options; opts 34 net/netfilter/nft_synproxy.c opts->mss_encode = opts->mss_option; opts 35 net/netfilter/nft_synproxy.c opts->mss_option = info->mss; opts 36 net/netfilter/nft_synproxy.c if (opts->options & NF_SYNPROXY_OPT_TIMESTAMP) opts 37 net/netfilter/nft_synproxy.c synproxy_init_timestamp_cookie(info, opts); opts 39 net/netfilter/nft_synproxy.c opts->options &= ~(NF_SYNPROXY_OPT_WSCALE | opts 49 net/netfilter/nft_synproxy.c struct synproxy_options *opts) opts 58 net/netfilter/nft_synproxy.c nft_synproxy_tcp_options(opts, tcp, snet, &info, priv); opts 59 net/netfilter/nft_synproxy.c synproxy_send_client_synack(net, skb, tcp, opts); opts 64 net/netfilter/nft_synproxy.c if (synproxy_recv_client_ack(net, skb, tcp, opts, opts 80 net/netfilter/nft_synproxy.c struct synproxy_options *opts) opts 89 net/netfilter/nft_synproxy.c nft_synproxy_tcp_options(opts, tcp, snet, &info, priv); opts 90 net/netfilter/nft_synproxy.c synproxy_send_client_synack_ipv6(net, skb, tcp, opts); opts 95 net/netfilter/nft_synproxy.c if (synproxy_recv_client_ack_ipv6(net, skb, tcp, opts, opts 110 net/netfilter/nft_synproxy.c struct synproxy_options opts = {}; opts 134 net/netfilter/nft_synproxy.c if (!synproxy_parse_options(skb, thoff, tcp, &opts)) { opts 141 net/netfilter/nft_synproxy.c nft_synproxy_eval_v4(priv, regs, pkt, tcp, &_tcph, &opts); opts 145 net/netfilter/nft_synproxy.c nft_synproxy_eval_v6(priv, regs, pkt, tcp, &_tcph, &opts); opts 154 net/netfilter/nft_tunnel.c struct nft_tunnel_opts opts; opts 229 net/netfilter/nft_tunnel.c struct nft_tunnel_opts *opts) opts 242 net/netfilter/nft_tunnel.c opts->u.vxlan.gbp = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_VXLAN_GBP])); opts 244 net/netfilter/nft_tunnel.c opts->len = sizeof(struct vxlan_metadata); opts 245 net/netfilter/nft_tunnel.c opts->flags = TUNNEL_VXLAN_OPT; opts 258 net/netfilter/nft_tunnel.c struct nft_tunnel_opts *opts) opts 279 net/netfilter/nft_tunnel.c opts->u.erspan.u.index = opts 290 net/netfilter/nft_tunnel.c set_hwid(&opts->u.erspan.u.md2, hwid); opts 291 net/netfilter/nft_tunnel.c opts->u.erspan.u.md2.dir = dir; opts 296 net/netfilter/nft_tunnel.c opts->u.erspan.version = version; opts 298 net/netfilter/nft_tunnel.c opts->len = sizeof(struct erspan_metadata); opts 299 net/netfilter/nft_tunnel.c opts->flags = TUNNEL_ERSPAN_OPT; opts 312 net/netfilter/nft_tunnel.c struct nft_tunnel_opts *opts) opts 324 net/netfilter/nft_tunnel.c opts); opts 327 net/netfilter/nft_tunnel.c opts); opts 406 net/netfilter/nft_tunnel.c &info, &priv->opts); opts 411 net/netfilter/nft_tunnel.c md = metadata_dst_alloc(priv->opts.len, METADATA_IP_TUNNEL, GFP_KERNEL); opts 423 net/netfilter/nft_tunnel.c ip_tunnel_info_opts_set(&md->u.tun_info, &priv->opts.u, priv->opts.len, opts 424 net/netfilter/nft_tunnel.c priv->opts.flags); opts 475 net/netfilter/nft_tunnel.c struct nft_tunnel_opts *opts = &priv->opts; opts 482 net/netfilter/nft_tunnel.c if (opts->flags & TUNNEL_VXLAN_OPT) { opts 484 net/netfilter/nft_tunnel.c htonl(opts->u.vxlan.gbp))) opts 486 net/netfilter/nft_tunnel.c } else if (opts->flags & TUNNEL_ERSPAN_OPT) { opts 487 net/netfilter/nft_tunnel.c switch (opts->u.erspan.version) { opts 490 net/netfilter/nft_tunnel.c opts->u.erspan.u.index)) opts 495 net/netfilter/nft_tunnel.c get_hwid(&opts->u.erspan.u.md2)) || opts 497 net/netfilter/nft_tunnel.c opts->u.erspan.u.md2.dir)) opts 577 net/openvswitch/flow_netlink.c struct vxlan_metadata opts; opts 579 net/openvswitch/flow_netlink.c BUILD_BUG_ON(sizeof(opts) > sizeof(match->key->tun_opts)); opts 581 net/openvswitch/flow_netlink.c memset(&opts, 0, sizeof(opts)); opts 601 net/openvswitch/flow_netlink.c opts.gbp = nla_get_u32(a); opts 616 net/openvswitch/flow_netlink.c SW_FLOW_KEY_PUT(match, tun_opts_len, sizeof(opts), false); opts 620 net/openvswitch/flow_netlink.c opt_key_offset = TUN_METADATA_OFFSET(sizeof(opts)); opts 621 net/openvswitch/flow_netlink.c SW_FLOW_KEY_MEMCPY_OFFSET(match, opt_key_offset, &opts, sizeof(opts), opts 843 net/openvswitch/flow_netlink.c const struct vxlan_metadata *opts = tun_opts; opts 850 net/openvswitch/flow_netlink.c if (nla_put_u32(skb, OVS_VXLAN_EXT_GBP, opts->gbp) < 0) opts 1989 net/openvswitch/flow_netlink.c const void *opts = NULL; opts 1992 net/openvswitch/flow_netlink.c opts = TUN_METADATA_OPTS(output, swkey->tun_opts_len); opts 1994 net/openvswitch/flow_netlink.c if (ip_tun_to_nlattr(skb, &output->tun_key, opts, opts 2738 net/sched/sch_cake.c struct nlattr *opts; opts 2740 net/sched/sch_cake.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 2741 net/sched/sch_cake.c if (!opts) opts 2803 net/sched/sch_cake.c return nla_nest_end(skb, opts); opts 442 net/sched/sch_choke.c struct nlattr *opts = NULL; opts 453 net/sched/sch_choke.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 454 net/sched/sch_choke.c if (opts == NULL) opts 460 net/sched/sch_choke.c return nla_nest_end(skb, opts); opts 463 net/sched/sch_choke.c nla_nest_cancel(skb, opts); opts 219 net/sched/sch_codel.c struct nlattr *opts; opts 221 net/sched/sch_codel.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 222 net/sched/sch_codel.c if (opts == NULL) opts 238 net/sched/sch_codel.c return nla_nest_end(skb, opts); opts 241 net/sched/sch_codel.c nla_nest_cancel(skb, opts); opts 430 net/sched/sch_dsmark.c struct nlattr *opts = NULL; opts 440 net/sched/sch_dsmark.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 441 net/sched/sch_dsmark.c if (opts == NULL) opts 447 net/sched/sch_dsmark.c return nla_nest_end(skb, opts); opts 450 net/sched/sch_dsmark.c nla_nest_cancel(skb, opts); opts 457 net/sched/sch_dsmark.c struct nlattr *opts = NULL; opts 459 net/sched/sch_dsmark.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 460 net/sched/sch_dsmark.c if (opts == NULL) opts 473 net/sched/sch_dsmark.c return nla_nest_end(skb, opts); opts 476 net/sched/sch_dsmark.c nla_nest_cancel(skb, opts); opts 905 net/sched/sch_fq.c struct nlattr *opts; opts 907 net/sched/sch_fq.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 908 net/sched/sch_fq.c if (opts == NULL) opts 931 net/sched/sch_fq.c return nla_nest_end(skb, opts); opts 516 net/sched/sch_fq_codel.c struct nlattr *opts; opts 518 net/sched/sch_fq_codel.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 519 net/sched/sch_fq_codel.c if (opts == NULL) opts 545 net/sched/sch_fq_codel.c return nla_nest_end(skb, opts); opts 760 net/sched/sch_gred.c struct nlattr *parms, *vqs, *opts = NULL; opts 773 net/sched/sch_gred.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 774 net/sched/sch_gred.c if (opts == NULL) opts 893 net/sched/sch_gred.c return nla_nest_end(skb, opts); opts 896 net/sched/sch_gred.c nla_nest_cancel(skb, opts); opts 657 net/sched/sch_hhf.c struct nlattr *opts; opts 659 net/sched/sch_hhf.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 660 net/sched/sch_hhf.c if (opts == NULL) opts 674 net/sched/sch_hhf.c return nla_nest_end(skb, opts); opts 484 net/sched/sch_pie.c struct nlattr *opts; opts 486 net/sched/sch_pie.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 487 net/sched/sch_pie.c if (!opts) opts 503 net/sched/sch_pie.c return nla_nest_end(skb, opts); opts 506 net/sched/sch_pie.c nla_nest_cancel(skb, opts); opts 302 net/sched/sch_red.c struct nlattr *opts = NULL; opts 318 net/sched/sch_red.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 319 net/sched/sch_red.c if (opts == NULL) opts 324 net/sched/sch_red.c return nla_nest_end(skb, opts); opts 327 net/sched/sch_red.c nla_nest_cancel(skb, opts); opts 568 net/sched/sch_sfb.c struct nlattr *opts; opts 582 net/sched/sch_sfb.c opts = nla_nest_start_noflag(skb, TCA_OPTIONS); opts 583 net/sched/sch_sfb.c if (opts == NULL) opts 587 net/sched/sch_sfb.c return nla_nest_end(skb, opts); opts 590 net/sched/sch_sfb.c nla_nest_cancel(skb, opts); opts 621 net/tipc/udp_media.c struct nlattr *opts[TIPC_NLA_UDP_MAX + 1]; opts 624 net/tipc/udp_media.c if (nla_parse_nested_deprecated(opts, TIPC_NLA_UDP_MAX, attr, tipc_nl_udp_policy, NULL)) opts 627 net/tipc/udp_media.c if (!opts[TIPC_NLA_UDP_REMOTE]) opts 630 net/tipc/udp_media.c err = tipc_parse_udp_addr(opts[TIPC_NLA_UDP_REMOTE], &addr, NULL); opts 664 net/tipc/udp_media.c struct nlattr *opts[TIPC_NLA_UDP_MAX + 1]; opts 677 net/tipc/udp_media.c if (nla_parse_nested_deprecated(opts, TIPC_NLA_UDP_MAX, attrs[TIPC_NLA_BEARER_UDP_OPTS], tipc_nl_udp_policy, NULL)) opts 680 net/tipc/udp_media.c if (!opts[TIPC_NLA_UDP_LOCAL] || !opts[TIPC_NLA_UDP_REMOTE]) { opts 686 net/tipc/udp_media.c err = tipc_parse_udp_addr(opts[TIPC_NLA_UDP_LOCAL], &local, opts 691 net/tipc/udp_media.c err = tipc_parse_udp_addr(opts[TIPC_NLA_UDP_REMOTE], &remote, NULL); opts 937 net/xdp/xsk.c struct xdp_options opts = {}; opts 939 net/xdp/xsk.c if (len < sizeof(opts)) opts 944 net/xdp/xsk.c opts.flags |= XDP_OPTIONS_ZEROCOPY; opts 947 net/xdp/xsk.c len = sizeof(opts); opts 948 net/xdp/xsk.c if (copy_to_user(optval, &opts, len)) opts 115 security/apparmor/capability.c unsigned int opts, struct common_audit_data *sa) opts 125 security/apparmor/capability.c if (opts & CAP_OPT_NOAUDIT) { opts 147 security/apparmor/capability.c int aa_capable(struct aa_label *label, int cap, unsigned int opts) opts 155 security/apparmor/capability.c profile_capable(profile, cap, opts, &sa)); opts 39 security/apparmor/include/capability.h int aa_capable(struct aa_label *label, int cap, unsigned int opts); opts 171 security/apparmor/lsm.c int cap, unsigned int opts) opts 178 security/apparmor/lsm.c error = aa_capable(label, cap, opts); opts 66 security/commoncap.c int cap, unsigned int opts) opts 66 security/safesetid/lsm.c unsigned int opts) opts 77 security/safesetid/lsm.c if ((opts & CAP_OPT_INSETID) != 0) opts 727 security/security.c unsigned int opts) opts 729 security/security.c return call_int_hook(capable, 0, cred, ns, cap, opts); opts 401 security/selinux/hooks.c struct selinux_mnt_opts *opts = mnt_opts; opts 402 security/selinux/hooks.c kfree(opts->fscontext); opts 403 security/selinux/hooks.c kfree(opts->context); opts 404 security/selinux/hooks.c kfree(opts->rootcontext); opts 405 security/selinux/hooks.c kfree(opts->defcontext); opts 406 security/selinux/hooks.c kfree(opts); opts 654 security/selinux/hooks.c struct selinux_mnt_opts *opts = mnt_opts; opts 663 security/selinux/hooks.c if (!opts) { opts 693 security/selinux/hooks.c && !opts) opts 703 security/selinux/hooks.c if (opts) { opts 704 security/selinux/hooks.c if (opts->fscontext) { opts 705 security/selinux/hooks.c rc = parse_sid(sb, opts->fscontext, &fscontext_sid); opts 713 security/selinux/hooks.c if (opts->context) { opts 714 security/selinux/hooks.c rc = parse_sid(sb, opts->context, &context_sid); opts 722 security/selinux/hooks.c if (opts->rootcontext) { opts 723 security/selinux/hooks.c rc = parse_sid(sb, opts->rootcontext, &rootcontext_sid); opts 731 security/selinux/hooks.c if (opts->defcontext) { opts 732 security/selinux/hooks.c rc = parse_sid(sb, opts->defcontext, &defcontext_sid); opts 744 security/selinux/hooks.c if ((sbsec->flags & SE_MNTMASK) && !opts) opts 997 security/selinux/hooks.c struct selinux_mnt_opts *opts = *mnt_opts; opts 1002 security/selinux/hooks.c if (!opts) { opts 1003 security/selinux/hooks.c opts = kzalloc(sizeof(struct selinux_mnt_opts), GFP_KERNEL); opts 1004 security/selinux/hooks.c if (!opts) opts 1006 security/selinux/hooks.c *mnt_opts = opts; opts 1012 security/selinux/hooks.c if (opts->context || opts->defcontext) opts 1014 security/selinux/hooks.c opts->context = s; opts 1017 security/selinux/hooks.c if (opts->fscontext) opts 1019 security/selinux/hooks.c opts->fscontext = s; opts 1022 security/selinux/hooks.c if (opts->rootcontext) opts 1024 security/selinux/hooks.c opts->rootcontext = s; opts 1027 security/selinux/hooks.c if (opts->context || opts->defcontext) opts 1029 security/selinux/hooks.c opts->defcontext = s; opts 1629 security/selinux/hooks.c int cap, unsigned int opts, bool initns) opts 1656 security/selinux/hooks.c if (!(opts & CAP_OPT_NOAUDIT)) { opts 2176 security/selinux/hooks.c int cap, unsigned int opts) opts 2178 security/selinux/hooks.c return cred_has_capability(cred, cap, opts, ns == &init_user_ns); opts 2684 security/selinux/hooks.c struct selinux_mnt_opts *opts = mnt_opts; opts 2692 security/selinux/hooks.c if (!opts) opts 2695 security/selinux/hooks.c if (opts->fscontext) { opts 2696 security/selinux/hooks.c rc = parse_sid(sb, opts->fscontext, &sid); opts 2702 security/selinux/hooks.c if (opts->context) { opts 2703 security/selinux/hooks.c rc = parse_sid(sb, opts->context, &sid); opts 2709 security/selinux/hooks.c if (opts->rootcontext) { opts 2712 security/selinux/hooks.c rc = parse_sid(sb, opts->rootcontext, &sid); opts 2718 security/selinux/hooks.c if (opts->defcontext) { opts 2719 security/selinux/hooks.c rc = parse_sid(sb, opts->defcontext, &sid); opts 2789 security/selinux/hooks.c struct selinux_mnt_opts *opts; opts 2798 security/selinux/hooks.c opts = fc->security; opts 2801 security/selinux/hooks.c opts->fscontext = kstrdup(src->fscontext, GFP_KERNEL); opts 2802 security/selinux/hooks.c if (!opts->fscontext) opts 2806 security/selinux/hooks.c opts->context = kstrdup(src->context, GFP_KERNEL); opts 2807 security/selinux/hooks.c if (!opts->context) opts 2811 security/selinux/hooks.c opts->rootcontext = kstrdup(src->rootcontext, GFP_KERNEL); opts 2812 security/selinux/hooks.c if (!opts->rootcontext) opts 2816 security/selinux/hooks.c opts->defcontext = kstrdup(src->defcontext, GFP_KERNEL); opts 2817 security/selinux/hooks.c if (!opts->defcontext) opts 3130 security/selinux/hooks.c unsigned int opts = audit ? CAP_OPT_NONE : CAP_OPT_NOAUDIT; opts 3132 security/selinux/hooks.c if (cap_capable(cred, &init_user_ns, CAP_MAC_ADMIN, opts)) opts 3134 security/selinux/hooks.c if (cred_has_capability(cred, CAP_MAC_ADMIN, opts, true)) opts 576 security/smack/smack_lsm.c struct smack_mnt_opts *opts = mnt_opts; opts 577 security/smack/smack_lsm.c kfree(opts->fsdefault); opts 578 security/smack/smack_lsm.c kfree(opts->fsfloor); opts 579 security/smack/smack_lsm.c kfree(opts->fshat); opts 580 security/smack/smack_lsm.c kfree(opts->fsroot); opts 581 security/smack/smack_lsm.c kfree(opts->fstransmute); opts 582 security/smack/smack_lsm.c kfree(opts); opts 587 security/smack/smack_lsm.c struct smack_mnt_opts *opts = *mnt_opts; opts 589 security/smack/smack_lsm.c if (!opts) { opts 590 security/smack/smack_lsm.c opts = kzalloc(sizeof(struct smack_mnt_opts), GFP_KERNEL); opts 591 security/smack/smack_lsm.c if (!opts) opts 593 security/smack/smack_lsm.c *mnt_opts = opts; opts 600 security/smack/smack_lsm.c if (opts->fsdefault) opts 602 security/smack/smack_lsm.c opts->fsdefault = s; opts 605 security/smack/smack_lsm.c if (opts->fsfloor) opts 607 security/smack/smack_lsm.c opts->fsfloor = s; opts 610 security/smack/smack_lsm.c if (opts->fshat) opts 612 security/smack/smack_lsm.c opts->fshat = s; opts 615 security/smack/smack_lsm.c if (opts->fsroot) opts 617 security/smack/smack_lsm.c opts->fsroot = s; opts 620 security/smack/smack_lsm.c if (opts->fstransmute) opts 622 security/smack/smack_lsm.c opts->fstransmute = s; opts 785 security/smack/smack_lsm.c struct smack_mnt_opts *opts = mnt_opts; opts 802 security/smack/smack_lsm.c if (opts) opts 825 security/smack/smack_lsm.c if (opts) { opts 826 security/smack/smack_lsm.c if (opts->fsdefault) { opts 827 security/smack/smack_lsm.c skp = smk_import_entry(opts->fsdefault, 0); opts 832 security/smack/smack_lsm.c if (opts->fsfloor) { opts 833 security/smack/smack_lsm.c skp = smk_import_entry(opts->fsfloor, 0); opts 838 security/smack/smack_lsm.c if (opts->fshat) { opts 839 security/smack/smack_lsm.c skp = smk_import_entry(opts->fshat, 0); opts 844 security/smack/smack_lsm.c if (opts->fsroot) { opts 845 security/smack/smack_lsm.c skp = smk_import_entry(opts->fsroot, 0); opts 850 security/smack/smack_lsm.c if (opts->fstransmute) { opts 851 security/smack/smack_lsm.c skp = smk_import_entry(opts->fstransmute, 0); opts 128 tools/bpf/bpftool/map_perf_ring.c struct perf_buffer_raw_opts opts = {}; opts 194 tools/bpf/bpftool/map_perf_ring.c opts.attr = &perf_attr; opts 195 tools/bpf/bpftool/map_perf_ring.c opts.event_cb = print_bpf_output; opts 196 tools/bpf/bpftool/map_perf_ring.c opts.ctx = &ctx; opts 197 tools/bpf/bpftool/map_perf_ring.c opts.cpu_cnt = ctx.all_cpus ? 0 : 1; opts 198 tools/bpf/bpftool/map_perf_ring.c opts.cpus = &ctx.cpu; opts 199 tools/bpf/bpftool/map_perf_ring.c opts.map_keys = &ctx.idx; opts 201 tools/bpf/bpftool/map_perf_ring.c pb = perf_buffer__new_raw(map_fd, MMAP_PAGE_CNT, &opts); opts 1077 tools/lib/bpf/btf.c const struct btf_dedup_opts *opts); opts 1224 tools/lib/bpf/btf.c const struct btf_dedup_opts *opts) opts 1226 tools/lib/bpf/btf.c struct btf_dedup *d = btf_dedup_new(btf, btf_ext, opts); opts 1297 tools/lib/bpf/btf.c struct btf_dedup_opts opts; opts 1386 tools/lib/bpf/btf.c const struct btf_dedup_opts *opts) opts 1395 tools/lib/bpf/btf.c d->opts.dont_resolve_fwds = opts && opts->dont_resolve_fwds; opts 1397 tools/lib/bpf/btf.c if (opts && opts->dedup_table_size == 1) opts 2037 tools/lib/bpf/btf.c if (d->opts.dont_resolve_fwds) opts 2257 tools/lib/bpf/btf.c if (!d->opts.dont_resolve_fwds opts 2281 tools/lib/bpf/btf.c if (d->opts.dont_resolve_fwds) opts 110 tools/lib/bpf/btf.h const struct btf_dedup_opts *opts); opts 122 tools/lib/bpf/btf.h const struct btf_dump_opts *opts, opts 59 tools/lib/bpf/btf_dump.c struct btf_dump_opts opts; opts 115 tools/lib/bpf/btf_dump.c d->printf_fn(d->opts.ctx, fmt, args); opts 121 tools/lib/bpf/btf_dump.c const struct btf_dump_opts *opts, opts 134 tools/lib/bpf/btf_dump.c d->opts.ctx = opts ? opts->ctx : NULL; opts 5429 tools/lib/bpf/libbpf.c const struct perf_buffer_opts *opts) opts 5441 tools/lib/bpf/libbpf.c p.sample_cb = opts ? opts->sample_cb : NULL; opts 5442 tools/lib/bpf/libbpf.c p.lost_cb = opts ? opts->lost_cb : NULL; opts 5443 tools/lib/bpf/libbpf.c p.ctx = opts ? opts->ctx : NULL; opts 5450 tools/lib/bpf/libbpf.c const struct perf_buffer_raw_opts *opts) opts 5454 tools/lib/bpf/libbpf.c p.attr = opts->attr; opts 5455 tools/lib/bpf/libbpf.c p.event_cb = opts->event_cb; opts 5456 tools/lib/bpf/libbpf.c p.ctx = opts->ctx; opts 5457 tools/lib/bpf/libbpf.c p.cpu_cnt = opts->cpu_cnt; opts 5458 tools/lib/bpf/libbpf.c p.cpus = opts->cpus; opts 5459 tools/lib/bpf/libbpf.c p.map_keys = opts->map_keys; opts 380 tools/lib/bpf/libbpf.h const struct perf_buffer_opts *opts); opts 693 tools/lib/subcmd/parse-options.c static void print_option_help(const struct option *opts, int full) opts 698 tools/lib/subcmd/parse-options.c if (opts->type == OPTION_GROUP) { opts 700 tools/lib/subcmd/parse-options.c if (*opts->help) opts 701 tools/lib/subcmd/parse-options.c fprintf(stderr, "%s\n", opts->help); opts 704 tools/lib/subcmd/parse-options.c if (!full && (opts->flags & PARSE_OPT_HIDDEN)) opts 706 tools/lib/subcmd/parse-options.c if (opts->flags & PARSE_OPT_DISABLED) opts 710 tools/lib/subcmd/parse-options.c if (opts->short_name) opts 711 tools/lib/subcmd/parse-options.c pos += fprintf(stderr, "-%c", opts->short_name); opts 715 tools/lib/subcmd/parse-options.c if (opts->long_name && opts->short_name) opts 717 tools/lib/subcmd/parse-options.c if (opts->long_name) opts 718 tools/lib/subcmd/parse-options.c pos += fprintf(stderr, "--%s", opts->long_name); opts 720 tools/lib/subcmd/parse-options.c switch (opts->type) { opts 728 tools/lib/subcmd/parse-options.c if (opts->flags & PARSE_OPT_OPTARG) opts 729 tools/lib/subcmd/parse-options.c if (opts->long_name) opts 737 tools/lib/subcmd/parse-options.c if (opts->flags & PARSE_OPT_NOARG) opts 741 tools/lib/subcmd/parse-options.c if (opts->argh) { opts 742 tools/lib/subcmd/parse-options.c if (opts->flags & PARSE_OPT_OPTARG) opts 743 tools/lib/subcmd/parse-options.c if (opts->long_name) opts 744 tools/lib/subcmd/parse-options.c pos += fprintf(stderr, "[=<%s>]", opts->argh); opts 746 tools/lib/subcmd/parse-options.c pos += fprintf(stderr, "[<%s>]", opts->argh); opts 748 tools/lib/subcmd/parse-options.c pos += fprintf(stderr, " <%s>", opts->argh); opts 750 tools/lib/subcmd/parse-options.c if (opts->flags & PARSE_OPT_OPTARG) opts 751 tools/lib/subcmd/parse-options.c if (opts->long_name) opts 776 tools/lib/subcmd/parse-options.c fprintf(stderr, "%*s%s\n", pad + USAGE_GAP, "", opts->help); opts 777 tools/lib/subcmd/parse-options.c if (opts->flags & PARSE_OPT_NOBUILD) opts 780 tools/lib/subcmd/parse-options.c opts->build_opt); opts 804 tools/lib/subcmd/parse-options.c static struct option *options__order(const struct option *opts) opts 807 tools/lib/subcmd/parse-options.c const struct option *o = opts; opts 810 tools/lib/subcmd/parse-options.c for (o = opts; o->type != OPTION_END; o++) opts 817 tools/lib/subcmd/parse-options.c memcpy(ordered, opts, len); opts 856 tools/lib/subcmd/parse-options.c const struct option *opts, int full, opts 881 tools/lib/subcmd/parse-options.c if (opts->type != OPTION_GROUP) opts 884 tools/lib/subcmd/parse-options.c ordered = options__order(opts); opts 886 tools/lib/subcmd/parse-options.c opts = ordered; opts 888 tools/lib/subcmd/parse-options.c for ( ; opts->type != OPTION_END; opts++) { opts 889 tools/lib/subcmd/parse-options.c if (ctx && ctx->argc > 1 && !option__in_argv(opts, ctx)) opts 891 tools/lib/subcmd/parse-options.c print_option_help(opts, full); opts 902 tools/lib/subcmd/parse-options.c const struct option *opts) opts 904 tools/lib/subcmd/parse-options.c usage_with_options_internal(usagestr, opts, 0, NULL); opts 909 tools/lib/subcmd/parse-options.c const struct option *opts, const char *fmt, ...) opts 921 tools/lib/subcmd/parse-options.c usage_with_options_internal(usagestr, opts, 0, NULL); opts 926 tools/lib/subcmd/parse-options.c const struct option *opts, opts 944 tools/lib/subcmd/parse-options.c for ( ; opts->type != OPTION_END; opts++) { opts 946 tools/lib/subcmd/parse-options.c if (opts->short_name == *optstr) { opts 947 tools/lib/subcmd/parse-options.c print_option_help(opts, 0); opts 953 tools/lib/subcmd/parse-options.c if (opts->long_name == NULL) opts 956 tools/lib/subcmd/parse-options.c if (strstarts(opts->long_name, optstr)) opts 957 tools/lib/subcmd/parse-options.c print_option_help(opts, 0); opts 959 tools/lib/subcmd/parse-options.c strstarts(opts->long_name, optstr + 3)) opts 960 tools/lib/subcmd/parse-options.c print_option_help(opts, 0); opts 991 tools/lib/subcmd/parse-options.c find_option(struct option *opts, int shortopt, const char *longopt) opts 993 tools/lib/subcmd/parse-options.c for (; opts->type != OPTION_END; opts++) { opts 994 tools/lib/subcmd/parse-options.c if ((shortopt && opts->short_name == shortopt) || opts 995 tools/lib/subcmd/parse-options.c (opts->long_name && longopt && opts 996 tools/lib/subcmd/parse-options.c !strcmp(opts->long_name, longopt))) opts 997 tools/lib/subcmd/parse-options.c return opts; opts 1002 tools/lib/subcmd/parse-options.c void set_option_flag(struct option *opts, int shortopt, const char *longopt, opts 1005 tools/lib/subcmd/parse-options.c struct option *opt = find_option(opts, shortopt, longopt); opts 1012 tools/lib/subcmd/parse-options.c void set_option_nobuild(struct option *opts, int shortopt, opts 1017 tools/lib/subcmd/parse-options.c struct option *opt = find_option(opts, shortopt, longopt); opts 215 tools/lib/subcmd/parse-options.h const struct option *opts, opts 240 tools/lib/subcmd/parse-options.h void set_option_flag(struct option *opts, int sopt, const char *lopt, int flag); opts 241 tools/lib/subcmd/parse-options.h void set_option_nobuild(struct option *opts, int shortopt, const char *longopt, opts 193 tools/perf/arch/arm/util/cs-etm.c struct record_opts *opts, opts 207 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_snapshot_mode = true; opts 208 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_snapshot_size = snapshot_size; opts 253 tools/perf/arch/arm/util/cs-etm.c struct record_opts *opts) opts 265 tools/perf/arch/arm/util/cs-etm.c ptr->snapshot_mode = opts->auxtrace_snapshot_mode; opts 268 tools/perf/arch/arm/util/cs-etm.c opts->record_switch_events = true; opts 280 tools/perf/arch/arm/util/cs-etm.c opts->full_auxtrace = true; opts 292 tools/perf/arch/arm/util/cs-etm.c if (opts->use_clockid) { opts 299 tools/perf/arch/arm/util/cs-etm.c if (opts->auxtrace_snapshot_mode) { opts 304 tools/perf/arch/arm/util/cs-etm.c if (!opts->auxtrace_snapshot_size && opts 305 tools/perf/arch/arm/util/cs-etm.c !opts->auxtrace_mmap_pages) { opts 307 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_mmap_pages = MiB(4) / page_size; opts 309 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_mmap_pages = opts 311 tools/perf/arch/arm/util/cs-etm.c if (opts->mmap_pages == UINT_MAX) opts 312 tools/perf/arch/arm/util/cs-etm.c opts->mmap_pages = KiB(256) / page_size; opts 314 tools/perf/arch/arm/util/cs-etm.c } else if (!opts->auxtrace_mmap_pages && !privileged && opts 315 tools/perf/arch/arm/util/cs-etm.c opts->mmap_pages == UINT_MAX) { opts 316 tools/perf/arch/arm/util/cs-etm.c opts->mmap_pages = KiB(256) / page_size; opts 323 tools/perf/arch/arm/util/cs-etm.c if (!opts->auxtrace_snapshot_size) { opts 324 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_snapshot_size = opts 325 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_mmap_pages * (size_t)page_size; opts 333 tools/perf/arch/arm/util/cs-etm.c if (!opts->auxtrace_mmap_pages) { opts 334 tools/perf/arch/arm/util/cs-etm.c size_t sz = opts->auxtrace_snapshot_size; opts 337 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_mmap_pages = roundup_pow_of_two(sz); opts 341 tools/perf/arch/arm/util/cs-etm.c if (opts->auxtrace_snapshot_size > opts 342 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_mmap_pages * (size_t)page_size) { opts 344 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_snapshot_size, opts 345 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_mmap_pages * (size_t)page_size); opts 350 tools/perf/arch/arm/util/cs-etm.c if (!opts->auxtrace_snapshot_size || opts 351 tools/perf/arch/arm/util/cs-etm.c !opts->auxtrace_mmap_pages) { opts 358 tools/perf/arch/arm/util/cs-etm.c if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) { opts 360 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_mmap_pages = MiB(4) / page_size; opts 362 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_mmap_pages = KiB(128) / page_size; opts 363 tools/perf/arch/arm/util/cs-etm.c if (opts->mmap_pages == UINT_MAX) opts 364 tools/perf/arch/arm/util/cs-etm.c opts->mmap_pages = KiB(256) / page_size; opts 370 tools/perf/arch/arm/util/cs-etm.c if (opts->auxtrace_mmap_pages) { opts 372 tools/perf/arch/arm/util/cs-etm.c size_t sz = opts->auxtrace_mmap_pages * (size_t)page_size; opts 375 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_mmap_pages > max_page) { opts 376 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_mmap_pages = max_page; opts 388 tools/perf/arch/arm/util/cs-etm.c if (opts->auxtrace_snapshot_mode) opts 390 tools/perf/arch/arm/util/cs-etm.c opts->auxtrace_snapshot_size); opts 413 tools/perf/arch/arm/util/cs-etm.c if (opts->full_auxtrace) { opts 65 tools/perf/arch/arm64/util/arm-spe.c struct record_opts *opts) opts 86 tools/perf/arch/arm64/util/arm-spe.c opts->full_auxtrace = true; opts 90 tools/perf/arch/arm64/util/arm-spe.c if (!opts->full_auxtrace) opts 94 tools/perf/arch/arm64/util/arm-spe.c if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) { opts 96 tools/perf/arch/arm64/util/arm-spe.c opts->auxtrace_mmap_pages = MiB(4) / page_size; opts 98 tools/perf/arch/arm64/util/arm-spe.c opts->auxtrace_mmap_pages = KiB(128) / page_size; opts 99 tools/perf/arch/arm64/util/arm-spe.c if (opts->mmap_pages == UINT_MAX) opts 100 tools/perf/arch/arm64/util/arm-spe.c opts->mmap_pages = KiB(256) / page_size; opts 105 tools/perf/arch/arm64/util/arm-spe.c if (opts->auxtrace_mmap_pages) { opts 106 tools/perf/arch/arm64/util/arm-spe.c size_t sz = opts->auxtrace_mmap_pages * (size_t)page_size; opts 49 tools/perf/arch/s390/util/auxtrace.c struct record_opts *opts) opts 54 tools/perf/arch/s390/util/auxtrace.c opts->full_auxtrace = true; opts 64 tools/perf/arch/s390/util/auxtrace.c if (!opts->auxtrace_mmap_pages) { opts 65 tools/perf/arch/s390/util/auxtrace.c if (opts->user_freq != UINT_MAX) opts 66 tools/perf/arch/s390/util/auxtrace.c factor = (opts->user_freq + DEFAULT_FREQ opts 69 tools/perf/arch/s390/util/auxtrace.c opts->auxtrace_mmap_pages = roundup_pow_of_two(pages); opts 77 tools/perf/arch/s390/util/auxtrace.c struct record_opts *opts __maybe_unused, opts 49 tools/perf/arch/x86/tests/perf-time-to-tsc.c struct record_opts opts = { opts 84 tools/perf/arch/x86/tests/perf-time-to-tsc.c perf_evlist__config(evlist, &opts, NULL); opts 107 tools/perf/arch/x86/util/intel-bts.c struct record_opts *opts) opts 117 tools/perf/arch/x86/util/intel-bts.c btsr->snapshot_mode = opts->auxtrace_snapshot_mode; opts 128 tools/perf/arch/x86/util/intel-bts.c opts->full_auxtrace = true; opts 132 tools/perf/arch/x86/util/intel-bts.c if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { opts 137 tools/perf/arch/x86/util/intel-bts.c if (!opts->full_auxtrace) opts 140 tools/perf/arch/x86/util/intel-bts.c if (opts->full_auxtrace && !perf_cpu_map__empty(cpus)) { opts 146 tools/perf/arch/x86/util/intel-bts.c if (opts->auxtrace_snapshot_mode) { opts 147 tools/perf/arch/x86/util/intel-bts.c if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { opts 149 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_mmap_pages = MiB(4) / page_size; opts 151 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_mmap_pages = KiB(128) / page_size; opts 152 tools/perf/arch/x86/util/intel-bts.c if (opts->mmap_pages == UINT_MAX) opts 153 tools/perf/arch/x86/util/intel-bts.c opts->mmap_pages = KiB(256) / page_size; opts 155 tools/perf/arch/x86/util/intel-bts.c } else if (!opts->auxtrace_mmap_pages && !privileged && opts 156 tools/perf/arch/x86/util/intel-bts.c opts->mmap_pages == UINT_MAX) { opts 157 tools/perf/arch/x86/util/intel-bts.c opts->mmap_pages = KiB(256) / page_size; opts 159 tools/perf/arch/x86/util/intel-bts.c if (!opts->auxtrace_snapshot_size) opts 160 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_snapshot_size = opts 161 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_mmap_pages * (size_t)page_size; opts 162 tools/perf/arch/x86/util/intel-bts.c if (!opts->auxtrace_mmap_pages) { opts 163 tools/perf/arch/x86/util/intel-bts.c size_t sz = opts->auxtrace_snapshot_size; opts 166 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_mmap_pages = roundup_pow_of_two(sz); opts 168 tools/perf/arch/x86/util/intel-bts.c if (opts->auxtrace_snapshot_size > opts 169 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_mmap_pages * (size_t)page_size) { opts 171 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_snapshot_size, opts 172 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_mmap_pages * (size_t)page_size); opts 175 tools/perf/arch/x86/util/intel-bts.c if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { opts 180 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_snapshot_size); opts 184 tools/perf/arch/x86/util/intel-bts.c if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) { opts 186 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_mmap_pages = MiB(4) / page_size; opts 188 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_mmap_pages = KiB(128) / page_size; opts 189 tools/perf/arch/x86/util/intel-bts.c if (opts->mmap_pages == UINT_MAX) opts 190 tools/perf/arch/x86/util/intel-bts.c opts->mmap_pages = KiB(256) / page_size; opts 195 tools/perf/arch/x86/util/intel-bts.c if (opts->auxtrace_mmap_pages) { opts 196 tools/perf/arch/x86/util/intel-bts.c size_t sz = opts->auxtrace_mmap_pages * (size_t)page_size; opts 199 tools/perf/arch/x86/util/intel-bts.c if (opts->auxtrace_snapshot_mode) opts 226 tools/perf/arch/x86/util/intel-bts.c if (opts->full_auxtrace) { opts 246 tools/perf/arch/x86/util/intel-bts.c struct record_opts *opts, opts 260 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_snapshot_mode = true; opts 261 tools/perf/arch/x86/util/intel-bts.c opts->auxtrace_snapshot_size = snapshot_size; opts 236 tools/perf/arch/x86/util/intel-pt.c struct record_opts *opts, opts 250 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_snapshot_mode = true; opts 251 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_snapshot_size = snapshot_size; opts 576 tools/perf/arch/x86/util/intel-pt.c struct record_opts *opts) opts 589 tools/perf/arch/x86/util/intel-pt.c ptr->snapshot_mode = opts->auxtrace_snapshot_mode; opts 600 tools/perf/arch/x86/util/intel-pt.c opts->full_auxtrace = true; opts 604 tools/perf/arch/x86/util/intel-pt.c if (opts->auxtrace_snapshot_mode && !opts->full_auxtrace) { opts 609 tools/perf/arch/x86/util/intel-pt.c if (opts->use_clockid) { opts 617 tools/perf/arch/x86/util/intel-pt.c if (!opts->full_auxtrace) opts 625 tools/perf/arch/x86/util/intel-pt.c if (opts->auxtrace_snapshot_mode) { opts 628 tools/perf/arch/x86/util/intel-pt.c if (!opts->auxtrace_snapshot_size && !opts->auxtrace_mmap_pages) { opts 630 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_mmap_pages = MiB(4) / page_size; opts 632 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_mmap_pages = KiB(128) / page_size; opts 633 tools/perf/arch/x86/util/intel-pt.c if (opts->mmap_pages == UINT_MAX) opts 634 tools/perf/arch/x86/util/intel-pt.c opts->mmap_pages = KiB(256) / page_size; opts 636 tools/perf/arch/x86/util/intel-pt.c } else if (!opts->auxtrace_mmap_pages && !privileged && opts 637 tools/perf/arch/x86/util/intel-pt.c opts->mmap_pages == UINT_MAX) { opts 638 tools/perf/arch/x86/util/intel-pt.c opts->mmap_pages = KiB(256) / page_size; opts 640 tools/perf/arch/x86/util/intel-pt.c if (!opts->auxtrace_snapshot_size) opts 641 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_snapshot_size = opts 642 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_mmap_pages * (size_t)page_size; opts 643 tools/perf/arch/x86/util/intel-pt.c if (!opts->auxtrace_mmap_pages) { opts 644 tools/perf/arch/x86/util/intel-pt.c size_t sz = opts->auxtrace_snapshot_size; opts 647 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_mmap_pages = roundup_pow_of_two(sz); opts 649 tools/perf/arch/x86/util/intel-pt.c if (opts->auxtrace_snapshot_size > opts 650 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_mmap_pages * (size_t)page_size) { opts 652 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_snapshot_size, opts 653 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_mmap_pages * (size_t)page_size); opts 656 tools/perf/arch/x86/util/intel-pt.c if (!opts->auxtrace_snapshot_size || !opts->auxtrace_mmap_pages) { opts 661 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_snapshot_size); opts 663 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_snapshot_size <= psb_period + opts 666 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_snapshot_size, psb_period); opts 670 tools/perf/arch/x86/util/intel-pt.c if (opts->full_auxtrace && !opts->auxtrace_mmap_pages) { opts 672 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_mmap_pages = MiB(4) / page_size; opts 674 tools/perf/arch/x86/util/intel-pt.c opts->auxtrace_mmap_pages = KiB(128) / page_size; opts 675 tools/perf/arch/x86/util/intel-pt.c if (opts->mmap_pages == UINT_MAX) opts 676 tools/perf/arch/x86/util/intel-pt.c opts->mmap_pages = KiB(256) / page_size; opts 681 tools/perf/arch/x86/util/intel-pt.c if (opts->auxtrace_mmap_pages) { opts 682 tools/perf/arch/x86/util/intel-pt.c size_t sz = opts->auxtrace_mmap_pages * (size_t)page_size; opts 685 tools/perf/arch/x86/util/intel-pt.c if (opts->auxtrace_snapshot_mode) opts 699 tools/perf/arch/x86/util/intel-pt.c if (opts->full_auxtrace && (intel_pt_evsel->core.attr.config & tsc_bit)) opts 710 tools/perf/arch/x86/util/intel-pt.c bool cpu_wide = !target__none(&opts->target) && opts 711 tools/perf/arch/x86/util/intel-pt.c !target__has_task(&opts->target); opts 735 tools/perf/arch/x86/util/intel-pt.c opts->record_switch_events = false; opts 738 tools/perf/arch/x86/util/intel-pt.c opts->record_switch_events = true; opts 771 tools/perf/arch/x86/util/intel-pt.c if (opts->full_auxtrace) { opts 803 tools/perf/arch/x86/util/intel-pt.c !target__none(&opts->target)) opts 48 tools/perf/builtin-annotate.c struct annotation_options opts; opts 304 tools/perf/builtin-annotate.c return symbol__tty_annotate(he->ms.sym, he->ms.map, evsel, &ann->opts); opts 306 tools/perf/builtin-annotate.c return symbol__tty_annotate2(he->ms.sym, he->ms.map, evsel, &ann->opts); opts 357 tools/perf/builtin-annotate.c key = hist_entry__tui_annotate(he, evsel, NULL, &ann->opts); opts 404 tools/perf/builtin-annotate.c if (!ann->opts.objdump_path) { opts 406 tools/perf/builtin-annotate.c &ann->opts.objdump_path); opts 491 tools/perf/builtin-annotate.c .opts = annotation__default_options, opts 519 tools/perf/builtin-annotate.c OPT_BOOLEAN('l', "print-line", &annotate.opts.print_lines, opts 521 tools/perf/builtin-annotate.c OPT_BOOLEAN('P', "full-paths", &annotate.opts.full_path, opts 532 tools/perf/builtin-annotate.c OPT_BOOLEAN(0, "source", &annotate.opts.annotate_src, opts 534 tools/perf/builtin-annotate.c OPT_BOOLEAN(0, "asm-raw", &annotate.opts.show_asm_raw, opts 536 tools/perf/builtin-annotate.c OPT_STRING('M', "disassembler-style", &annotate.opts.disassembler_style, "disassembler style", opts 538 tools/perf/builtin-annotate.c OPT_STRING(0, "objdump", &annotate.opts.objdump_path, "path", opts 549 tools/perf/builtin-annotate.c OPT_CALLBACK(0, "percent-type", &annotate.opts, "local-period", opts 59 tools/perf/builtin-data.c struct perf_data_convert_opts opts = { opts 69 tools/perf/builtin-data.c OPT_BOOLEAN('f', "force", &opts.force, "don't complain, do it"), opts 70 tools/perf/builtin-data.c OPT_BOOLEAN(0, "all", &opts.all, "Convert all events"), opts 88 tools/perf/builtin-data.c return bt_convert__perf2ctf(input_name, to_ctf, &opts); opts 577 tools/perf/builtin-kvm.c if (kvm->opts.target.system_wide) opts 579 tools/perf/builtin-kvm.c else if (kvm->opts.target.pid) opts 580 tools/perf/builtin-kvm.c pr_info("pid(s) %s, ", kvm->opts.target.pid); opts 1025 tools/perf/builtin-kvm.c perf_evlist__config(evlist, &kvm->opts, NULL); opts 1065 tools/perf/builtin-kvm.c if (evlist__mmap(evlist, kvm->opts.mmap_pages) < 0) { opts 1126 tools/perf/builtin-kvm.c if (kvm->opts.target.pid) { opts 1127 tools/perf/builtin-kvm.c kvm->pid_list = intlist__new(kvm->opts.target.pid); opts 1266 tools/perf/builtin-kvm.c OPT_STRING('p', "pid", &kvm->opts.target.pid, "pid", opts 1286 tools/perf/builtin-kvm.c if (!kvm->opts.target.pid) opts 1287 tools/perf/builtin-kvm.c kvm->opts.target.system_wide = true; opts 1349 tools/perf/builtin-kvm.c OPT_STRING('p', "pid", &kvm->opts.target.pid, "pid", opts 1351 tools/perf/builtin-kvm.c OPT_CALLBACK('m', "mmap-pages", &kvm->opts.mmap_pages, "pages", opts 1356 tools/perf/builtin-kvm.c OPT_BOOLEAN('a', "all-cpus", &kvm->opts.target.system_wide, opts 1397 tools/perf/builtin-kvm.c kvm->opts.user_interval = 1; opts 1398 tools/perf/builtin-kvm.c kvm->opts.mmap_pages = 512; opts 1399 tools/perf/builtin-kvm.c kvm->opts.target.uses_mmap = false; opts 1400 tools/perf/builtin-kvm.c kvm->opts.target.uid_str = NULL; opts 1401 tools/perf/builtin-kvm.c kvm->opts.target.uid = UINT_MAX; opts 1420 tools/perf/builtin-kvm.c err = target__validate(&kvm->opts.target); opts 1422 tools/perf/builtin-kvm.c target__strerror(&kvm->opts.target, err, errbuf, BUFSIZ); opts 1426 tools/perf/builtin-kvm.c if (target__none(&kvm->opts.target)) opts 1427 tools/perf/builtin-kvm.c kvm->opts.target.system_wide = true; opts 1445 tools/perf/builtin-kvm.c if (perf_evlist__create_maps(kvm->evlist, &kvm->opts.target) < 0) opts 1459 tools/perf/builtin-kvm.c machine__synthesize_threads(&kvm->session->machines.host, &kvm->opts.target, opts 77 tools/perf/builtin-record.c struct record_opts opts; opts 375 tools/perf/builtin-record.c struct record_opts *opts = (struct record_opts *)opt->value; opts 378 tools/perf/builtin-record.c opts->nr_cblocks = 0; opts 381 tools/perf/builtin-record.c opts->nr_cblocks = strtol(str, NULL, 0); opts 382 tools/perf/builtin-record.c if (!opts->nr_cblocks) opts 383 tools/perf/builtin-record.c opts->nr_cblocks = nr_cblocks_default; opts 413 tools/perf/builtin-record.c return rec->opts.nr_cblocks > 0; opts 422 tools/perf/builtin-record.c struct record_opts *opts = (struct record_opts *)opt->value; opts 435 tools/perf/builtin-record.c opts->mmap_flush = parse_tag_value(str, tags); opts 436 tools/perf/builtin-record.c if (opts->mmap_flush == (int)-1) opts 437 tools/perf/builtin-record.c opts->mmap_flush = strtol(str, NULL, 0); opts 440 tools/perf/builtin-record.c if (!opts->mmap_flush) opts 441 tools/perf/builtin-record.c opts->mmap_flush = MMAP_FLUSH_DEFAULT; opts 443 tools/perf/builtin-record.c flush_max = evlist__mmap_size(opts->mmap_pages); opts 445 tools/perf/builtin-record.c if (opts->mmap_flush > flush_max) opts 446 tools/perf/builtin-record.c opts->mmap_flush = flush_max; opts 456 tools/perf/builtin-record.c struct record_opts *opts = opt->value; opts 459 tools/perf/builtin-record.c opts->comp_level = 0; opts 462 tools/perf/builtin-record.c opts->comp_level = strtol(str, NULL, 0); opts 463 tools/perf/builtin-record.c if (!opts->comp_level) opts 464 tools/perf/builtin-record.c opts->comp_level = comp_level_default; opts 474 tools/perf/builtin-record.c return rec->opts.comp_level > 0; opts 591 tools/perf/builtin-record.c rec->opts.auxtrace_snapshot_size); opts 660 tools/perf/builtin-record.c err = auxtrace_parse_snapshot_options(rec->itr, &rec->opts, opts 661 tools/perf/builtin-record.c rec->opts.auxtrace_snapshot_opts); opts 705 tools/perf/builtin-record.c struct record_opts *opts = &rec->opts; opts 708 tools/perf/builtin-record.c if (opts->affinity != PERF_AFFINITY_SYS) opts 711 tools/perf/builtin-record.c if (evlist__mmap_ex(evlist, opts->mmap_pages, opts 712 tools/perf/builtin-record.c opts->auxtrace_mmap_pages, opts 713 tools/perf/builtin-record.c opts->auxtrace_snapshot_mode, opts 714 tools/perf/builtin-record.c opts->nr_cblocks, opts->affinity, opts 715 tools/perf/builtin-record.c opts->mmap_flush, opts->comp_level) < 0) { opts 722 tools/perf/builtin-record.c opts->mmap_pages, opts->auxtrace_mmap_pages); opts 747 tools/perf/builtin-record.c struct record_opts *opts = &rec->opts; opts 755 tools/perf/builtin-record.c if (opts->initial_delay) { opts 766 tools/perf/builtin-record.c perf_evlist__config(evlist, opts, &callchain_param); opts 783 tools/perf/builtin-record.c perf_evsel__open_strerror(pos, &opts->target, opts 907 tools/perf/builtin-record.c if (rec->opts.affinity != PERF_AFFINITY_SYS && opts 999 tools/perf/builtin-record.c if (map->auxtrace_mmap.base && !rec->opts.auxtrace_snapshot_mode && opts 1047 tools/perf/builtin-record.c if (!rec->opts.branch_stack) opts 1050 tools/perf/builtin-record.c if (!rec->opts.full_auxtrace) opts 1053 tools/perf/builtin-record.c if (!(rec->opts.use_clockid && rec->opts.clockid_res_ns)) opts 1091 tools/perf/builtin-record.c if (rec->opts.tail_synthesize != tail) opts 1101 tools/perf/builtin-record.c rec->opts.sample_address); opts 1121 tools/perf/builtin-record.c if (target__none(&rec->opts.target)) opts 1172 tools/perf/builtin-record.c if (target__none(&rec->opts.target)) opts 1224 tools/perf/builtin-record.c struct record_opts *opts = &rec->opts; opts 1229 tools/perf/builtin-record.c if (rec->opts.tail_synthesize != tail) opts 1275 tools/perf/builtin-record.c if (rec->opts.full_auxtrace) { opts 1324 tools/perf/builtin-record.c machine, opts); opts 1328 tools/perf/builtin-record.c err = __machine__synthesize_threads(machine, tool, &opts->target, rec->evlist->core.threads, opts 1329 tools/perf/builtin-record.c process_synthesized_event, opts->sample_address, opts 1342 tools/perf/builtin-record.c struct record_opts *opts = &rec->opts; opts 1356 tools/perf/builtin-record.c if (rec->opts.record_namespaces) opts 1359 tools/perf/builtin-record.c if (rec->opts.auxtrace_snapshot_mode || rec->switch_output.enabled) { opts 1361 tools/perf/builtin-record.c if (rec->opts.auxtrace_snapshot_mode) opts 1378 tools/perf/builtin-record.c if (zstd_init(&session->zstd_data, rec->opts.comp_level) < 0) { opts 1384 tools/perf/builtin-record.c session->header.env.comp_level = rec->opts.comp_level; opts 1388 tools/perf/builtin-record.c if (rec->opts.use_clockid && rec->opts.clockid_res_ns) opts 1389 tools/perf/builtin-record.c session->header.env.clockid_res_ns = rec->opts.clockid_res_ns; opts 1392 tools/perf/builtin-record.c err = perf_evlist__prepare_workload(rec->evlist, &opts->target, opts 1409 tools/perf/builtin-record.c rec->opts.sample_id = true; opts 1457 tools/perf/builtin-record.c if (!opts->no_bpf_event) opts 1460 tools/perf/builtin-record.c if (perf_evlist__start_sb_thread(sb_evlist, &rec->opts.target)) { opts 1462 tools/perf/builtin-record.c opts->no_bpf_event = true; opts 1485 tools/perf/builtin-record.c if (!target__none(&opts->target) && !opts->initial_delay) opts 1537 tools/perf/builtin-record.c if (opts->initial_delay) { opts 1538 tools/perf/builtin-record.c usleep(opts->initial_delay * USEC_PER_MSEC); opts 1636 tools/perf/builtin-record.c if (done && !disabled && !target__none(&opts->target)) { opts 1646 tools/perf/builtin-record.c if (opts->auxtrace_snapshot_on_exit) opts 1660 tools/perf/builtin-record.c if (target__none(&rec->opts.target)) opts 1712 tools/perf/builtin-record.c if (rec->samples && !rec->opts.full_auxtrace) opts 1733 tools/perf/builtin-record.c if (!opts->no_bpf_event) opts 1817 tools/perf/builtin-record.c rec->opts.nr_cblocks = strtol(value, NULL, 0); opts 1818 tools/perf/builtin-record.c if (!rec->opts.nr_cblocks) opts 1819 tools/perf/builtin-record.c rec->opts.nr_cblocks = nr_cblocks_default; opts 1884 tools/perf/builtin-record.c struct record_opts *opts = (struct record_opts *)opt->value; opts 1889 tools/perf/builtin-record.c opts->use_clockid = 0; opts 1898 tools/perf/builtin-record.c if (opts->use_clockid) opts 1901 tools/perf/builtin-record.c opts->use_clockid = true; opts 1904 tools/perf/builtin-record.c if (sscanf(str, "%d", &opts->clockid) == 1) opts 1905 tools/perf/builtin-record.c return get_clockid_res(opts->clockid, &opts->clockid_res_ns); opts 1913 tools/perf/builtin-record.c opts->clockid = cm->clockid; opts 1914 tools/perf/builtin-record.c return get_clockid_res(opts->clockid, opts 1915 tools/perf/builtin-record.c &opts->clockid_res_ns); opts 1919 tools/perf/builtin-record.c opts->use_clockid = false; opts 1926 tools/perf/builtin-record.c struct record_opts *opts = (struct record_opts *)opt->value; opts 1932 tools/perf/builtin-record.c opts->affinity = PERF_AFFINITY_NODE; opts 1934 tools/perf/builtin-record.c opts->affinity = PERF_AFFINITY_CPU; opts 1943 tools/perf/builtin-record.c struct record_opts *opts = opt->value; opts 1963 tools/perf/builtin-record.c opts->mmap_pages = mmap_pages; opts 1975 tools/perf/builtin-record.c opts->auxtrace_mmap_pages = mmap_pages; opts 1984 tools/perf/builtin-record.c u64 wakeup_size = evlist__mmap_size(rec->opts.mmap_pages); opts 2048 tools/perf/builtin-record.c if (s->size && !rec->opts.no_buffering) opts 2072 tools/perf/builtin-record.c .opts = { opts 2117 tools/perf/builtin-record.c OPT_STRING('p', "pid", &record.opts.target.pid, "pid", opts 2119 tools/perf/builtin-record.c OPT_STRING('t', "tid", &record.opts.target.tid, "tid", opts 2123 tools/perf/builtin-record.c OPT_BOOLEAN(0, "no-buffering", &record.opts.no_buffering, opts 2125 tools/perf/builtin-record.c OPT_BOOLEAN('R', "raw-samples", &record.opts.raw_samples, opts 2127 tools/perf/builtin-record.c OPT_BOOLEAN('a', "all-cpus", &record.opts.target.system_wide, opts 2129 tools/perf/builtin-record.c OPT_STRING('C', "cpu", &record.opts.target.cpu_list, "cpu", opts 2131 tools/perf/builtin-record.c OPT_U64('c', "count", &record.opts.user_interval, "event period to sample"), opts 2134 tools/perf/builtin-record.c OPT_BOOLEAN_SET('i', "no-inherit", &record.opts.no_inherit, opts 2135 tools/perf/builtin-record.c &record.opts.no_inherit_set, opts 2137 tools/perf/builtin-record.c OPT_BOOLEAN(0, "tail-synthesize", &record.opts.tail_synthesize, opts 2139 tools/perf/builtin-record.c OPT_BOOLEAN(0, "overwrite", &record.opts.overwrite, "use overwrite mode"), opts 2140 tools/perf/builtin-record.c OPT_BOOLEAN(0, "no-bpf-event", &record.opts.no_bpf_event, "record bpf events"), opts 2141 tools/perf/builtin-record.c OPT_BOOLEAN(0, "strict-freq", &record.opts.strict_freq, opts 2143 tools/perf/builtin-record.c OPT_CALLBACK('F', "freq", &record.opts, "freq or 'max'", opts 2146 tools/perf/builtin-record.c OPT_CALLBACK('m', "mmap-pages", &record.opts, "pages[,pages]", opts 2149 tools/perf/builtin-record.c OPT_CALLBACK(0, "mmap-flush", &record.opts, "number", opts 2152 tools/perf/builtin-record.c OPT_BOOLEAN(0, "group", &record.opts.group, opts 2157 tools/perf/builtin-record.c OPT_CALLBACK(0, "call-graph", &record.opts, opts 2163 tools/perf/builtin-record.c OPT_BOOLEAN('s', "stat", &record.opts.inherit_stat, opts 2165 tools/perf/builtin-record.c OPT_BOOLEAN('d', "data", &record.opts.sample_address, "Record the sample addresses"), opts 2166 tools/perf/builtin-record.c OPT_BOOLEAN(0, "phys-data", &record.opts.sample_phys_addr, opts 2168 tools/perf/builtin-record.c OPT_BOOLEAN(0, "sample-cpu", &record.opts.sample_cpu, "Record the sample cpu"), opts 2169 tools/perf/builtin-record.c OPT_BOOLEAN_SET('T', "timestamp", &record.opts.sample_time, opts 2170 tools/perf/builtin-record.c &record.opts.sample_time_set, opts 2172 tools/perf/builtin-record.c OPT_BOOLEAN_SET('P', "period", &record.opts.period, &record.opts.period_set, opts 2174 tools/perf/builtin-record.c OPT_BOOLEAN('n', "no-samples", &record.opts.no_samples, opts 2185 tools/perf/builtin-record.c OPT_UINTEGER('D', "delay", &record.opts.initial_delay, opts 2187 tools/perf/builtin-record.c OPT_STRING('u', "uid", &record.opts.target.uid_str, "user", opts 2190 tools/perf/builtin-record.c OPT_CALLBACK_NOOPT('b', "branch-any", &record.opts.branch_stack, opts 2194 tools/perf/builtin-record.c OPT_CALLBACK('j', "branch-filter", &record.opts.branch_stack, opts 2197 tools/perf/builtin-record.c OPT_BOOLEAN('W', "weight", &record.opts.sample_weight, opts 2199 tools/perf/builtin-record.c OPT_BOOLEAN(0, "transaction", &record.opts.sample_transaction, opts 2201 tools/perf/builtin-record.c OPT_BOOLEAN(0, "per-thread", &record.opts.target.per_thread, opts 2203 tools/perf/builtin-record.c OPT_CALLBACK_OPTARG('I', "intr-regs", &record.opts.sample_intr_regs, NULL, "any register", opts 2206 tools/perf/builtin-record.c OPT_CALLBACK_OPTARG(0, "user-regs", &record.opts.sample_user_regs, NULL, "any register", opts 2209 tools/perf/builtin-record.c OPT_BOOLEAN(0, "running-time", &record.opts.running_time, opts 2211 tools/perf/builtin-record.c OPT_CALLBACK('k', "clockid", &record.opts, opts 2214 tools/perf/builtin-record.c OPT_STRING_OPTARG('S', "snapshot", &record.opts.auxtrace_snapshot_opts, opts 2218 tools/perf/builtin-record.c OPT_BOOLEAN(0, "namespaces", &record.opts.record_namespaces, opts 2220 tools/perf/builtin-record.c OPT_BOOLEAN(0, "switch-events", &record.opts.record_switch_events, opts 2222 tools/perf/builtin-record.c OPT_BOOLEAN_FLAG(0, "all-kernel", &record.opts.all_kernel, opts 2225 tools/perf/builtin-record.c OPT_BOOLEAN_FLAG(0, "all-user", &record.opts.all_user, opts 2228 tools/perf/builtin-record.c OPT_BOOLEAN(0, "kernel-callchains", &record.opts.kernel_callchains, opts 2230 tools/perf/builtin-record.c OPT_BOOLEAN(0, "user-callchains", &record.opts.user_callchains, opts 2253 tools/perf/builtin-record.c OPT_CALLBACK_OPTARG(0, "aio", &record.opts, opts 2257 tools/perf/builtin-record.c OPT_CALLBACK(0, "affinity", &record.opts, "node|cpu", opts 2261 tools/perf/builtin-record.c OPT_CALLBACK_OPTARG('z', "compression-level", &record.opts, &comp_level_default, opts 2300 tools/perf/builtin-record.c rec->opts.affinity = PERF_AFFINITY_SYS; opts 2316 tools/perf/builtin-record.c if (!argc && target__none(&rec->opts.target)) opts 2317 tools/perf/builtin-record.c rec->opts.target.system_wide = true; opts 2319 tools/perf/builtin-record.c if (nr_cgroups && !rec->opts.target.system_wide) { opts 2325 tools/perf/builtin-record.c if (rec->opts.comp_level != 0) { opts 2330 tools/perf/builtin-record.c if (rec->opts.record_switch_events && opts 2410 tools/perf/builtin-record.c if (record.opts.overwrite) opts 2411 tools/perf/builtin-record.c record.opts.tail_synthesize = true; opts 2414 tools/perf/builtin-record.c __perf_evlist__add_default(rec->evlist, !record.opts.no_samples) < 0) { opts 2419 tools/perf/builtin-record.c if (rec->opts.target.tid && !rec->opts.no_inherit_set) opts 2420 tools/perf/builtin-record.c rec->opts.no_inherit = true; opts 2422 tools/perf/builtin-record.c err = target__validate(&rec->opts.target); opts 2424 tools/perf/builtin-record.c target__strerror(&rec->opts.target, err, errbuf, BUFSIZ); opts 2428 tools/perf/builtin-record.c err = target__parse_uid(&rec->opts.target); opts 2432 tools/perf/builtin-record.c target__strerror(&rec->opts.target, err, errbuf, BUFSIZ); opts 2440 tools/perf/builtin-record.c rec->opts.ignore_missing_thread = rec->opts.target.uid != UINT_MAX || rec->opts.target.pid; opts 2443 tools/perf/builtin-record.c if (perf_evlist__create_maps(rec->evlist, &rec->opts.target) < 0) opts 2446 tools/perf/builtin-record.c err = auxtrace_record__options(rec->itr, rec->evlist, &rec->opts); opts 2455 tools/perf/builtin-record.c if (rec->opts.full_auxtrace) opts 2458 tools/perf/builtin-record.c if (record_opts__config(&rec->opts)) { opts 2463 tools/perf/builtin-record.c if (rec->opts.nr_cblocks > nr_cblocks_max) opts 2464 tools/perf/builtin-record.c rec->opts.nr_cblocks = nr_cblocks_max; opts 2465 tools/perf/builtin-record.c pr_debug("nr_cblocks: %d\n", rec->opts.nr_cblocks); opts 2467 tools/perf/builtin-record.c pr_debug("affinity: %s\n", affinity_tags[rec->opts.affinity]); opts 2468 tools/perf/builtin-record.c pr_debug("mmap flush: %d\n", rec->opts.mmap_flush); opts 2470 tools/perf/builtin-record.c if (rec->opts.comp_level > comp_level_max) opts 2471 tools/perf/builtin-record.c rec->opts.comp_level = comp_level_max; opts 2472 tools/perf/builtin-record.c pr_debug("comp level: %d\n", rec->opts.comp_level); opts 866 tools/perf/builtin-top.c struct record_opts *opts = &top->record_opts; opts 871 tools/perf/builtin-top.c md = opts->overwrite ? &evlist->overwrite_mmap[idx] : &evlist->mmap[idx]; opts 936 tools/perf/builtin-top.c struct record_opts *opts = &top->record_opts; opts 973 tools/perf/builtin-top.c if ((overwrite >= 0) && (opts->overwrite != overwrite)) opts 974 tools/perf/builtin-top.c opts->overwrite = overwrite; opts 982 tools/perf/builtin-top.c struct record_opts *opts = &top->record_opts; opts 986 tools/perf/builtin-top.c if (!opts->overwrite) opts 995 tools/perf/builtin-top.c opts->overwrite = false; opts 1005 tools/perf/builtin-top.c struct record_opts *opts = &top->record_opts; opts 1013 tools/perf/builtin-top.c perf_evlist__config(evlist, opts, &callchain_param); opts 1040 tools/perf/builtin-top.c perf_evsel__open_strerror(counter, &opts->target, opts 1047 tools/perf/builtin-top.c if (evlist__mmap(evlist, opts->mmap_pages) < 0) { opts 1220 tools/perf/builtin-top.c struct record_opts *opts = &top->record_opts; opts 1243 tools/perf/builtin-top.c if (opts->record_namespaces) opts 1252 tools/perf/builtin-top.c machine__synthesize_threads(&top->session->machines.host, &opts->target, opts 1285 tools/perf/builtin-top.c if (!target__none(&opts->target)) opts 1320 tools/perf/builtin-top.c if (opts->overwrite || (hits == top->samples)) opts 1421 tools/perf/builtin-top.c struct record_opts *opts = &top.record_opts; opts 1422 tools/perf/builtin-top.c struct target *target = &opts->target; opts 1427 tools/perf/builtin-top.c OPT_U64('c', "count", &opts->user_interval, "event period to sample"), opts 1444 tools/perf/builtin-top.c OPT_CALLBACK('m', "mmap-pages", &opts->mmap_pages, "pages", opts 1455 tools/perf/builtin-top.c OPT_BOOLEAN(0, "group", &opts->group, opts 1457 tools/perf/builtin-top.c OPT_BOOLEAN('i', "no-inherit", &opts->no_inherit, opts 1523 tools/perf/builtin-top.c OPT_CALLBACK_NOOPT('b', "branch-any", &opts->branch_stack, opts 1526 tools/perf/builtin-top.c OPT_CALLBACK('j', "branch-filter", &opts->branch_stack, opts 1538 tools/perf/builtin-top.c OPT_BOOLEAN(0, "namespaces", &opts->record_namespaces, opts 1591 tools/perf/builtin-top.c if (opts->branch_stack && callchain_param.enabled) opts 1643 tools/perf/builtin-top.c if (record_opts__config(opts)) { opts 1688 tools/perf/builtin-top.c opts->no_bpf_event = true; opts 1693 tools/perf/builtin-top.c if (!opts->no_bpf_event) opts 109 tools/perf/builtin-trace.c struct record_opts opts; opts 1418 tools/perf/builtin-trace.c err = __machine__synthesize_threads(trace->host, &trace->tool, &trace->opts.target, opts 2734 tools/perf/builtin-trace.c perf_evsel__config_callchain(sys_enter, &trace->opts, &callchain_param); opts 2735 tools/perf/builtin-trace.c perf_evsel__config_callchain(sys_exit, &trace->opts, &callchain_param); opts 3289 tools/perf/builtin-trace.c perf_evsel__config_callchain(pgfault_maj, &trace->opts, &callchain_param); opts 3297 tools/perf/builtin-trace.c perf_evsel__config_callchain(pgfault_min, &trace->opts, &callchain_param); opts 3334 tools/perf/builtin-trace.c err = perf_evlist__create_maps(evlist, &trace->opts.target); opts 3346 tools/perf/builtin-trace.c perf_evlist__config(evlist, &trace->opts, &callchain_param); opts 3352 tools/perf/builtin-trace.c err = perf_evlist__prepare_workload(evlist, &trace->opts.target, opts 3415 tools/perf/builtin-trace.c err = evlist__mmap(evlist, trace->opts.mmap_pages); opts 3419 tools/perf/builtin-trace.c if (!target__none(&trace->opts.target) && !trace->opts.initial_delay) opts 3425 tools/perf/builtin-trace.c if (trace->opts.initial_delay) { opts 3426 tools/perf/builtin-trace.c usleep(trace->opts.initial_delay * 1000); opts 3594 tools/perf/builtin-trace.c if (trace->opts.target.pid) opts 3595 tools/perf/builtin-trace.c symbol_conf.pid_list_str = strdup(trace->opts.target.pid); opts 3597 tools/perf/builtin-trace.c if (trace->opts.target.tid) opts 3598 tools/perf/builtin-trace.c symbol_conf.tid_list_str = strdup(trace->opts.target.tid); opts 4059 tools/perf/builtin-trace.c trace->opts.no_inherit = perf_config_bool(var, value); opts 4079 tools/perf/builtin-trace.c .opts = { opts 4113 tools/perf/builtin-trace.c OPT_STRING('p', "pid", &trace.opts.target.pid, "pid", opts 4115 tools/perf/builtin-trace.c OPT_STRING('t', "tid", &trace.opts.target.tid, "tid", opts 4119 tools/perf/builtin-trace.c OPT_BOOLEAN('a', "all-cpus", &trace.opts.target.system_wide, opts 4121 tools/perf/builtin-trace.c OPT_STRING('C', "cpu", &trace.opts.target.cpu_list, "cpu", opts 4123 tools/perf/builtin-trace.c OPT_BOOLEAN(0, "no-inherit", &trace.opts.no_inherit, opts 4125 tools/perf/builtin-trace.c OPT_CALLBACK('m', "mmap-pages", &trace.opts.mmap_pages, "pages", opts 4128 tools/perf/builtin-trace.c OPT_STRING('u', "uid", &trace.opts.target.uid_str, "user", opts 4150 tools/perf/builtin-trace.c OPT_CALLBACK(0, "call-graph", &trace.opts, opts 4172 tools/perf/builtin-trace.c OPT_UINTEGER('D', "delay", &trace.opts.initial_delay, opts 4213 tools/perf/builtin-trace.c if ((nr_cgroups || trace.cgroup) && !trace.opts.target.system_wide) { opts 4264 tools/perf/builtin-trace.c trace.opts.sample_address = true; opts 4265 tools/perf/builtin-trace.c trace.opts.sample_time = true; opts 4268 tools/perf/builtin-trace.c if (trace.opts.mmap_pages == UINT_MAX) opts 4278 tools/perf/builtin-trace.c record_opts__parse_callchain(&trace.opts, &callchain_param, "dwarf", false); opts 4284 tools/perf/builtin-trace.c trace.opts.mmap_pages = perf_event_mlock_kb_in_pages() * 4; opts 4403 tools/perf/builtin-trace.c err = target__validate(&trace.opts.target); opts 4405 tools/perf/builtin-trace.c target__strerror(&trace.opts.target, err, bf, sizeof(bf)); opts 4410 tools/perf/builtin-trace.c err = target__parse_uid(&trace.opts.target); opts 4412 tools/perf/builtin-trace.c target__strerror(&trace.opts.target, err, bf, sizeof(bf)); opts 4417 tools/perf/builtin-trace.c if (!argc && target__none(&trace.opts.target)) opts 4418 tools/perf/builtin-trace.c trace.opts.target.system_wide = true; opts 91 tools/perf/tests/backward-ring-buffer.c struct record_opts opts = { opts 103 tools/perf/tests/backward-ring-buffer.c opts.target.tid = opts.target.pid = pid; opts 111 tools/perf/tests/backward-ring-buffer.c err = perf_evlist__create_maps(evlist, &opts.target); opts 129 tools/perf/tests/backward-ring-buffer.c perf_evlist__config(evlist, &opts, NULL); opts 139 tools/perf/tests/backward-ring-buffer.c err = do_test(evlist, opts.mmap_pages, &sample_count, opts 113 tools/perf/tests/bpf.c struct record_opts opts = { opts 144 tools/perf/tests/bpf.c opts.target.tid = opts.target.pid = pid; opts 153 tools/perf/tests/bpf.c err = perf_evlist__create_maps(evlist, &opts.target); opts 162 tools/perf/tests/bpf.c perf_evlist__config(evlist, &opts, NULL); opts 171 tools/perf/tests/bpf.c err = evlist__mmap(evlist, opts.mmap_pages); opts 555 tools/perf/tests/code-reading.c struct record_opts opts = { opts 653 tools/perf/tests/code-reading.c perf_evlist__config(evlist, &opts, NULL); opts 65 tools/perf/tests/keep-tracking.c struct record_opts opts = { opts 94 tools/perf/tests/keep-tracking.c perf_evlist__config(evlist, &opts, NULL); opts 26 tools/perf/tests/openat-syscall-tp-fields.c struct record_opts opts = { opts 56 tools/perf/tests/openat-syscall-tp-fields.c err = perf_evlist__create_maps(evlist, &opts.target); opts 62 tools/perf/tests/openat-syscall-tp-fields.c perf_evsel__config(evsel, &opts, NULL); opts 45 tools/perf/tests/perf-record.c struct record_opts opts = { opts 86 tools/perf/tests/perf-record.c err = perf_evlist__create_maps(evlist, &opts.target); opts 98 tools/perf/tests/perf-record.c err = perf_evlist__prepare_workload(evlist, &opts.target, argv, false, NULL); opts 111 tools/perf/tests/perf-record.c perf_evlist__config(evlist, &opts, NULL); opts 147 tools/perf/tests/perf-record.c err = evlist__mmap(evlist, opts.mmap_pages); opts 326 tools/perf/tests/switch-tracking.c struct record_opts opts = { opts 434 tools/perf/tests/switch-tracking.c perf_evlist__config(evlist, &opts, NULL); opts 35 tools/perf/ui/browsers/annotate.c struct annotation_options *opts; opts 122 tools/perf/ui/browsers/annotate.c annotation_line__write(al, notes, &ops, ab->opts); opts 256 tools/perf/ui/browsers/annotate.c if (disasm__cmp(al, l, browser->opts->percent_type) < 0) opts 329 tools/perf/ui/browsers/annotate.c browser->opts->percent_type); opts 434 tools/perf/ui/browsers/annotate.c symbol__tui_annotate(dl->ops.target.sym, ms->map, evsel, hbt, browser->opts); opts 435 tools/perf/ui/browsers/annotate.c sym_title(ms->sym, ms->map, title, sizeof(title), browser->opts->percent_type); opts 618 tools/perf/ui/browsers/annotate.c sym_title(sym, ms->map, symbol_dso, sizeof(symbol_dso), ab->opts->percent_type); opts 627 tools/perf/ui/browsers/annotate.c switch_percent_type(struct annotation_options *opts, bool base) opts 629 tools/perf/ui/browsers/annotate.c switch (opts->percent_type) { opts 632 tools/perf/ui/browsers/annotate.c opts->percent_type = PERCENT_PERIOD_LOCAL; opts 634 tools/perf/ui/browsers/annotate.c opts->percent_type = PERCENT_HITS_GLOBAL; opts 638 tools/perf/ui/browsers/annotate.c opts->percent_type = PERCENT_PERIOD_GLOBAL; opts 640 tools/perf/ui/browsers/annotate.c opts->percent_type = PERCENT_HITS_LOCAL; opts 644 tools/perf/ui/browsers/annotate.c opts->percent_type = PERCENT_HITS_LOCAL; opts 646 tools/perf/ui/browsers/annotate.c opts->percent_type = PERCENT_PERIOD_GLOBAL; opts 650 tools/perf/ui/browsers/annotate.c opts->percent_type = PERCENT_HITS_GLOBAL; opts 652 tools/perf/ui/browsers/annotate.c opts->percent_type = PERCENT_PERIOD_LOCAL; opts 831 tools/perf/ui/browsers/annotate.c map_symbol__annotation_dump(ms, evsel, browser->opts); opts 852 tools/perf/ui/browsers/annotate.c switch_percent_type(browser->opts, key == 'b'); opts 875 tools/perf/ui/browsers/annotate.c struct annotation_options *opts) opts 877 tools/perf/ui/browsers/annotate.c return symbol__tui_annotate(ms->sym, ms->map, evsel, hbt, opts); opts 882 tools/perf/ui/browsers/annotate.c struct annotation_options *opts) opts 888 tools/perf/ui/browsers/annotate.c return map_symbol__tui_annotate(&he->ms, evsel, hbt, opts); opts 894 tools/perf/ui/browsers/annotate.c struct annotation_options *opts) opts 911 tools/perf/ui/browsers/annotate.c .opts = opts, opts 921 tools/perf/ui/browsers/annotate.c err = symbol__annotate2(sym, map, evsel, opts, &browser.arch); opts 1715 tools/perf/util/annotate.c struct annotation_options *opts = args->options; opts 1821 tools/perf/util/annotate.c if (!opts->hide_src_code && srcline) { opts 1862 tools/perf/util/annotate.c struct annotation_options *opts = args->options; opts 1914 tools/perf/util/annotate.c opts->objdump_path ?: "objdump", opts 1915 tools/perf/util/annotate.c opts->disassembler_style ? "-M " : "", opts 1916 tools/perf/util/annotate.c opts->disassembler_style ?: "", opts 1919 tools/perf/util/annotate.c opts->show_asm_raw ? "" : "--no-show-raw", opts 1920 tools/perf/util/annotate.c opts->annotate_src ? "-S" : ""); opts 2116 tools/perf/util/annotate.c struct annotation_options *opts) opts 2131 tools/perf/util/annotate.c opts->percent_type); opts 2144 tools/perf/util/annotate.c opts->percent_type); opts 2268 tools/perf/util/annotate.c struct annotation_options *opts) opts 2280 tools/perf/util/annotate.c bool context = opts->context; opts 2290 tools/perf/util/annotate.c if (opts->full_path) opts 2308 tools/perf/util/annotate.c percent_type_str(opts->percent_type)); opts 2327 tools/perf/util/annotate.c opts->min_pcnt, printed, opts->max_lines, opts 2328 tools/perf/util/annotate.c queue, addr_fmt_width, opts->percent_type); opts 2406 tools/perf/util/annotate.c struct annotation_options *opts) opts 2423 tools/perf/util/annotate.c annotation_line__write(al, notes, &wops, opts); opts 2432 tools/perf/util/annotate.c struct annotation_options *opts) opts 2454 tools/perf/util/annotate.c symbol__annotate_fprintf2(ms->sym, fp, opts); opts 2643 tools/perf/util/annotate.c struct annotation_options *opts) opts 2656 tools/perf/util/annotate.c opts->percent_type); opts 2667 tools/perf/util/annotate.c insert_source_line(&tmp_root, al, opts); opts 2675 tools/perf/util/annotate.c struct annotation_options *opts) opts 2679 tools/perf/util/annotate.c annotation__calc_lines(notes, map, root, opts); opts 2684 tools/perf/util/annotate.c struct annotation_options *opts) opts 2691 tools/perf/util/annotate.c if (symbol__annotate2(sym, map, evsel, opts, NULL) < 0) opts 2694 tools/perf/util/annotate.c if (opts->print_lines) { opts 2695 tools/perf/util/annotate.c srcline_full_filename = opts->full_path; opts 2696 tools/perf/util/annotate.c symbol__calc_lines(sym, map, &source_line, opts); opts 2702 tools/perf/util/annotate.c buf, percent_type_str(opts->percent_type), sym->name, dso->long_name); opts 2703 tools/perf/util/annotate.c symbol__annotate_fprintf2(sym, stdout, opts); opts 2712 tools/perf/util/annotate.c struct annotation_options *opts) opts 2717 tools/perf/util/annotate.c if (symbol__annotate(sym, map, evsel, 0, opts, NULL) < 0) opts 2722 tools/perf/util/annotate.c if (opts->print_lines) { opts 2723 tools/perf/util/annotate.c srcline_full_filename = opts->full_path; opts 2724 tools/perf/util/annotate.c symbol__calc_lines(sym, map, &source_line, opts); opts 2728 tools/perf/util/annotate.c symbol__annotate_printf(sym, map, evsel, opts); opts 2972 tools/perf/util/annotate.c struct annotation_options *opts) opts 2976 tools/perf/util/annotate.c opts->percent_type, opts 3109 tools/perf/util/annotate.c struct annotation_options *opts = opt->value; opts 3128 tools/perf/util/annotate.c opts->percent_type = type; opts 215 tools/perf/util/annotate.h struct annotation_options *opts); opts 392 tools/perf/util/annotate.h struct annotation_options *opts); opts 397 tools/perf/util/annotate.h struct evsel *evsel, struct annotation_options *opts); opts 400 tools/perf/util/annotate.h struct evsel *evsel, struct annotation_options *opts); opts 406 tools/perf/util/annotate.h struct annotation_options *opts); opts 412 tools/perf/util/annotate.h struct annotation_options *opts __maybe_unused) opts 563 tools/perf/util/auxtrace.c struct record_opts *opts) opts 566 tools/perf/util/auxtrace.c return itr->recording_options(itr, evlist, opts); opts 578 tools/perf/util/auxtrace.c struct record_opts *opts, const char *str) opts 586 tools/perf/util/auxtrace.c opts->auxtrace_snapshot_on_exit = true; opts 594 tools/perf/util/auxtrace.c return itr->parse_snapshot_options(itr, opts, str); opts 320 tools/perf/util/auxtrace.h struct record_opts *opts); opts 334 tools/perf/util/auxtrace.h struct record_opts *opts, opts 498 tools/perf/util/auxtrace.h struct record_opts *opts, opts 502 tools/perf/util/auxtrace.h struct record_opts *opts); opts 573 tools/perf/util/auxtrace.h void itrace_synth_opts__set_time_range(struct itrace_synth_opts *opts, opts 577 tools/perf/util/auxtrace.h opts->ptime_range = ptime_range; opts 578 tools/perf/util/auxtrace.h opts->range_num = range_num; opts 582 tools/perf/util/auxtrace.h void itrace_synth_opts__clear_time_range(struct itrace_synth_opts *opts) opts 584 tools/perf/util/auxtrace.h opts->ptime_range = NULL; opts 585 tools/perf/util/auxtrace.h opts->range_num = 0; opts 607 tools/perf/util/auxtrace.h struct record_opts *opts __maybe_unused) opts 641 tools/perf/util/auxtrace.h struct record_opts *opts __maybe_unused, opts 723 tools/perf/util/auxtrace.h void itrace_synth_opts__set_time_range(struct itrace_synth_opts *opts opts 732 tools/perf/util/auxtrace.h void itrace_synth_opts__clear_time_range(struct itrace_synth_opts *opts opts 162 tools/perf/util/bpf-event.c struct record_opts *opts) opts 255 tools/perf/util/bpf-event.c if (!opts->no_bpf_event) { opts 298 tools/perf/util/bpf-event.c struct record_opts *opts) opts 331 tools/perf/util/bpf-event.c event, opts); opts 1577 tools/perf/util/data-convert-bt.c struct perf_data_convert_opts *opts) opts 1583 tools/perf/util/data-convert-bt.c .force = opts->force, opts 1604 tools/perf/util/data-convert-bt.c if (opts->all) { opts 1641 tools/perf/util/data-convert-bt.c if (opts->all && setup_non_sample_events(cw, session)) opts 8 tools/perf/util/data-convert-bt.h struct perf_data_convert_opts *opts); opts 167 tools/perf/util/evlist.h void perf_evlist__config(struct evlist *evlist, struct record_opts *opts, opts 169 tools/perf/util/evlist.h int record_opts__config(struct record_opts *opts); opts 690 tools/perf/util/evsel.c struct record_opts *opts, opts 700 tools/perf/util/evsel.c if (opts->kernel_callchains) opts 702 tools/perf/util/evsel.c if (opts->user_callchains) opts 705 tools/perf/util/evsel.c if (!opts->branch_stack) { opts 726 tools/perf/util/evsel.c if (opts->sample_user_regs && DWARF_MINIMAL_REGS != PERF_REGS_MASK) { opts 749 tools/perf/util/evsel.c struct record_opts *opts, opts 753 tools/perf/util/evsel.c return __perf_evsel__config_callchain(evsel, opts, param); opts 775 tools/perf/util/evsel.c struct record_opts *opts, bool track) opts 791 tools/perf/util/evsel.c if (!(term->weak && opts->user_interval != ULLONG_MAX)) { opts 798 tools/perf/util/evsel.c if (!(term->weak && opts->user_freq != UINT_MAX)) { opts 897 tools/perf/util/evsel.c perf_evsel__config_callchain(evsel, opts, ¶m); opts 936 tools/perf/util/evsel.c void perf_evsel__config(struct evsel *evsel, struct record_opts *opts, opts 942 tools/perf/util/evsel.c bool per_cpu = opts->target.default_per_cpu && !opts->target.per_thread; opts 945 tools/perf/util/evsel.c attr->inherit = !opts->no_inherit; opts 946 tools/perf/util/evsel.c attr->write_backward = opts->overwrite ? 1 : 0; opts 974 tools/perf/util/evsel.c if (!attr->sample_period || (opts->user_freq != UINT_MAX || opts 975 tools/perf/util/evsel.c opts->user_interval != ULLONG_MAX)) { opts 976 tools/perf/util/evsel.c if (opts->freq) { opts 979 tools/perf/util/evsel.c attr->sample_freq = opts->freq; opts 981 tools/perf/util/evsel.c attr->sample_period = opts->default_interval; opts 1004 tools/perf/util/evsel.c if (opts->no_samples) opts 1007 tools/perf/util/evsel.c if (opts->inherit_stat) { opts 1015 tools/perf/util/evsel.c if (opts->sample_address) { opts 1029 tools/perf/util/evsel.c perf_evsel__config_callchain(evsel, opts, callchain); opts 1031 tools/perf/util/evsel.c if (opts->sample_intr_regs) { opts 1032 tools/perf/util/evsel.c attr->sample_regs_intr = opts->sample_intr_regs; opts 1036 tools/perf/util/evsel.c if (opts->sample_user_regs) { opts 1037 tools/perf/util/evsel.c attr->sample_regs_user |= opts->sample_user_regs; opts 1041 tools/perf/util/evsel.c if (target__has_cpu(&opts->target) || opts->sample_cpu) opts 1047 tools/perf/util/evsel.c if (opts->sample_time && opts 1049 tools/perf/util/evsel.c (!opts->no_inherit || target__has_cpu(&opts->target) || per_cpu || opts 1050 tools/perf/util/evsel.c opts->sample_time_set))) opts 1053 tools/perf/util/evsel.c if (opts->raw_samples && !evsel->no_aux_samples) { opts 1059 tools/perf/util/evsel.c if (opts->sample_address) opts 1062 tools/perf/util/evsel.c if (opts->sample_phys_addr) opts 1065 tools/perf/util/evsel.c if (opts->no_buffering) { opts 1069 tools/perf/util/evsel.c if (opts->branch_stack && !evsel->no_aux_samples) { opts 1071 tools/perf/util/evsel.c attr->branch_sample_type = opts->branch_stack; opts 1074 tools/perf/util/evsel.c if (opts->sample_weight) opts 1082 tools/perf/util/evsel.c attr->bpf_event = track && !opts->no_bpf_event && !perf_missing_features.bpf; opts 1084 tools/perf/util/evsel.c if (opts->record_namespaces) opts 1087 tools/perf/util/evsel.c if (opts->record_switch_events) opts 1090 tools/perf/util/evsel.c if (opts->sample_transaction) opts 1093 tools/perf/util/evsel.c if (opts->running_time) { opts 1112 tools/perf/util/evsel.c if (target__none(&opts->target) && perf_evsel__is_group_leader(evsel) && opts 1113 tools/perf/util/evsel.c !opts->initial_delay) opts 1121 tools/perf/util/evsel.c clockid = opts->clockid; opts 1122 tools/perf/util/evsel.c if (opts->use_clockid) { opts 1124 tools/perf/util/evsel.c attr->clockid = opts->clockid; opts 1130 tools/perf/util/evsel.c if (opts->all_user) { opts 1135 tools/perf/util/evsel.c if (opts->all_kernel) { opts 1147 tools/perf/util/evsel.c apply_config_terms(evsel, opts, track); opts 1149 tools/perf/util/evsel.c evsel->ignore_missing_thread = opts->ignore_missing_thread; opts 1152 tools/perf/util/evsel.c if (opts->period_set) { opts 1153 tools/perf/util/evsel.c if (opts->period) opts 1164 tools/perf/util/evsel.c if (opts->initial_delay && is_dummy_event(evsel)) opts 175 tools/perf/util/evsel.h struct record_opts *opts, opts 178 tools/perf/util/evsel.h struct record_opts *opts, opts 2991 tools/perf/util/intel-pt.c struct itrace_synth_opts *opts) opts 2993 tools/perf/util/intel-pt.c struct perf_time_interval *p = opts->ptime_range; opts 2994 tools/perf/util/intel-pt.c int n = opts->range_num; opts 78 tools/perf/util/kvm-stat.h struct record_opts opts; opts 35 tools/perf/util/llvm-utils.c .opts = NULL, opts 60 tools/perf/util/llvm-utils.c llvm_param.opts = strdup(value); opts 445 tools/perf/util/llvm-utils.c const char *opts = llvm_param.opts; opts 495 tools/perf/util/llvm-utils.c if (opts) { opts 506 tools/perf/util/llvm-utils.c template, llc_path, opts) < 0) { opts 34 tools/perf/util/llvm-utils.h const char *opts; opts 139 tools/perf/util/record.c void perf_evlist__config(struct evlist *evlist, struct record_opts *opts, opts 145 tools/perf/util/record.c bool sample_id = opts->sample_id; opts 151 tools/perf/util/record.c if (opts->group) opts 155 tools/perf/util/record.c opts->no_inherit = true; opts 160 tools/perf/util/record.c perf_evsel__config(evsel, opts, callchain); opts 165 tools/perf/util/record.c if (opts->full_auxtrace) { opts 198 tools/perf/util/record.c static int record_opts__config_freq(struct record_opts *opts) opts 200 tools/perf/util/record.c bool user_freq = opts->user_freq != UINT_MAX; opts 203 tools/perf/util/record.c if (opts->user_interval != ULLONG_MAX) opts 204 tools/perf/util/record.c opts->default_interval = opts->user_interval; opts 206 tools/perf/util/record.c opts->freq = opts->user_freq; opts 211 tools/perf/util/record.c if (opts->default_interval) opts 212 tools/perf/util/record.c opts->freq = 0; opts 213 tools/perf/util/record.c else if (opts->freq) { opts 214 tools/perf/util/record.c opts->default_interval = opts->freq; opts 226 tools/perf/util/record.c if (user_freq && (max_rate < opts->freq)) { opts 227 tools/perf/util/record.c if (opts->strict_freq) { opts 238 tools/perf/util/record.c max_rate, opts->freq, max_rate); opts 240 tools/perf/util/record.c opts->freq = max_rate; opts 247 tools/perf/util/record.c if (max_rate < opts->freq) { opts 252 tools/perf/util/record.c opts->freq = max_rate; opts 258 tools/perf/util/record.c int record_opts__config(struct record_opts *opts) opts 260 tools/perf/util/record.c return record_opts__config_freq(opts); opts 313 tools/perf/util/record.c struct record_opts *opts = opt->value; opts 328 tools/perf/util/record.c opts->user_freq = freq; opts 92 tools/perf/util/synthetic-events.h struct machine *machine, struct record_opts *opts); opts 97 tools/perf/util/synthetic-events.h struct record_opts *opts __maybe_unused) opts 28 tools/perf/util/top.c struct record_opts *opts = &top->record_opts; opts 29 tools/perf/util/top.c struct target *target = &opts->target; opts 77 tools/perf/util/top.c opts->freq ? "Hz" : ""); opts 88 tools/power/acpi/common/getopt.c int acpi_getopt(int argc, char **argv, char *opts) opts 111 tools/power/acpi/common/getopt.c (opts_ptr = strchr(opts, current_char)) == NULL) { opts 6267 tools/testing/selftests/bpf/test_btf.c struct btf_dedup_opts opts; opts 6290 tools/testing/selftests/bpf/test_btf.c .opts = { opts 6315 tools/testing/selftests/bpf/test_btf.c .opts = { opts 6385 tools/testing/selftests/bpf/test_btf.c .opts = { opts 6429 tools/testing/selftests/bpf/test_btf.c .opts = { opts 6476 tools/testing/selftests/bpf/test_btf.c .opts = { opts 6533 tools/testing/selftests/bpf/test_btf.c .opts = { opts 6575 tools/testing/selftests/bpf/test_btf.c .opts = { opts 6619 tools/testing/selftests/bpf/test_btf.c .opts = { opts 6663 tools/testing/selftests/bpf/test_btf.c .opts = { opts 6763 tools/testing/selftests/bpf/test_btf.c err = btf__dedup(test_btf, NULL, &test->opts); opts 25 tools/testing/selftests/bpf/test_btf_dump.c struct btf_dump_opts opts; opts 27 tools/testing/selftests/bpf/test_btf_dump.c {.name = "btf_dump_test_case_syntax", .opts = {}}, opts 28 tools/testing/selftests/bpf/test_btf_dump.c {.name = "btf_dump_test_case_ordering", .opts = {}}, opts 29 tools/testing/selftests/bpf/test_btf_dump.c {.name = "btf_dump_test_case_padding", .opts = {}}, opts 30 tools/testing/selftests/bpf/test_btf_dump.c {.name = "btf_dump_test_case_packing", .opts = {}}, opts 31 tools/testing/selftests/bpf/test_btf_dump.c {.name = "btf_dump_test_case_bitfields", .opts = {}}, opts 32 tools/testing/selftests/bpf/test_btf_dump.c {.name = "btf_dump_test_case_multidim", .opts = {}}, opts 33 tools/testing/selftests/bpf/test_btf_dump.c {.name = "btf_dump_test_case_namespacing", .opts = {}}, opts 37 tools/testing/selftests/bpf/test_btf_dump.c const struct btf_dump_opts *opts) opts 43 tools/testing/selftests/bpf/test_btf_dump.c d = btf_dump__new(btf, NULL, opts, btf_dump_printf); opts 91 tools/testing/selftests/bpf/test_btf_dump.c test_case->opts.ctx = f; opts 92 tools/testing/selftests/bpf/test_btf_dump.c err = btf_dump_all_types(btf, &test_case->opts); opts 341 tools/testing/selftests/bpf/test_progs.c static const struct argp_option opts[] = { opts 531 tools/testing/selftests/bpf/test_progs.c .options = opts, opts 210 tools/thermal/tmon/tmon.c static struct option opts[] = { opts 235 tools/thermal/tmon/tmon.c while ((c = getopt_long(argc, argv, "c:dlht:T:vgz:", opts, &id2)) != -1) { opts 135 tools/usb/usbip/src/usbip.c static const struct option opts[] = { opts 149 tools/usb/usbip/src/usbip.c opt = getopt_long(argc, argv, "+dlt:", opts, NULL); opts 203 tools/usb/usbip/src/usbip_attach.c static const struct option opts[] = { opts 215 tools/usb/usbip/src/usbip_attach.c opt = getopt_long(argc, argv, "d:r:b:", opts, NULL); opts 184 tools/usb/usbip/src/usbip_bind.c static const struct option opts[] = { opts 193 tools/usb/usbip/src/usbip_bind.c opt = getopt_long(argc, argv, "b:", opts, NULL); opts 98 tools/usb/usbip/src/usbip_detach.c static const struct option opts[] = { opts 106 tools/usb/usbip/src/usbip_detach.c opt = getopt_long(argc, argv, "p:", opts, NULL); opts 327 tools/usb/usbip/src/usbip_list.c static const struct option opts[] = { opts 343 tools/usb/usbip/src/usbip_list.c opt = getopt_long(argc, argv, "pr:ld", opts, NULL); opts 102 tools/usb/usbip/src/usbip_unbind.c static const struct option opts[] = { opts 111 tools/usb/usbip/src/usbip_unbind.c opt = getopt_long(argc, argv, "b:", opts, NULL); opts 1233 tools/vm/page-types.c static const struct option opts[] = { opts 1262 tools/vm/page-types.c opts, NULL)) != -1) { opts 1352 tools/vm/slabinfo.c struct option opts[] = { opts 1390 tools/vm/slabinfo.c opts, NULL)) != -1)