/drivers/video/fbdev/core/ |
D | fb_cmdline.c | 37 char *opt, *options = NULL; in fb_get_options() local 53 options = opt + name_len + 1; in fb_get_options() 57 if (!options && option && fb_mode_option) in fb_get_options() 58 options = kstrdup(fb_mode_option, GFP_KERNEL); in fb_get_options() 59 if (options && !strncmp(options, "off", 3)) in fb_get_options() 63 *option = options; in fb_get_options() 79 static int __init video_setup(char *options) in video_setup() argument 81 if (!options || !*options) in video_setup() 84 if (!strncmp(options, "ofonly", 6)) { in video_setup() 89 if (strchr(options, ':')) { in video_setup() [all …]
|
/drivers/net/ppp/ |
D | ppp_deflate.c | 36 static void *z_comp_alloc(unsigned char *options, int opt_len); 37 static void *z_decomp_alloc(unsigned char *options, int opt_len); 40 static int z_comp_init(void *state, unsigned char *options, 43 static int z_decomp_init(void *state, unsigned char *options, 85 static void *z_comp_alloc(unsigned char *options, int opt_len) in z_comp_alloc() argument 91 (options[0] != CI_DEFLATE && options[0] != CI_DEFLATE_DRAFT) || in z_comp_alloc() 92 options[1] != CILEN_DEFLATE || in z_comp_alloc() 93 DEFLATE_METHOD(options[2]) != DEFLATE_METHOD_VAL || in z_comp_alloc() 94 options[3] != DEFLATE_CHK_SEQUENCE) in z_comp_alloc() 96 w_size = DEFLATE_SIZE(options[2]); in z_comp_alloc() [all …]
|
D | bsd_comp.c | 169 static void *bsd_alloc(unsigned char *options, int opt_len, int decomp); 170 static void *bsd_comp_alloc (unsigned char *options, int opt_len); 171 static void *bsd_decomp_alloc (unsigned char *options, int opt_len); 173 static int bsd_init (void *db, unsigned char *options, 175 static int bsd_comp_init (void *state, unsigned char *options, 177 static int bsd_decomp_init (void *state, unsigned char *options, 352 static void *bsd_alloc (unsigned char *options, int opt_len, int decomp) in bsd_alloc() argument 358 if (opt_len != 3 || options[0] != CI_BSD_COMPRESS || options[1] != 3 in bsd_alloc() 359 || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION) in bsd_alloc() 364 bits = BSD_NBITS(options[2]); in bsd_alloc() [all …]
|
D | ppp_mppe.c | 171 static void *mppe_alloc(unsigned char *options, int optlen) in mppe_alloc() argument 178 options[0] != CI_MPPE || options[1] != CILEN_MPPE || in mppe_alloc() 209 memcpy(state->master_key, &options[CILEN_MPPE], in mppe_alloc() 250 mppe_init(void *arg, unsigned char *options, int optlen, int unit, int debug, in mppe_init() argument 257 options[0] != CI_MPPE || options[1] != CILEN_MPPE) in mppe_init() 260 MPPE_CI_TO_OPTS(&options[2], mppe_opts); in mppe_init() 308 mppe_comp_init(void *arg, unsigned char *options, int optlen, int unit, in mppe_comp_init() argument 312 return mppe_init(arg, options, optlen, unit, debug, "mppe_comp_init"); in mppe_comp_init() 414 mppe_decomp_init(void *arg, unsigned char *options, int optlen, int unit, in mppe_decomp_init() argument 418 return mppe_init(arg, options, optlen, unit, debug, "mppe_decomp_init"); in mppe_decomp_init()
|
/drivers/crypto/caam/ |
D | desc_constr.h | 104 static inline void init_desc(u32 * const desc, u32 options) in init_desc() argument 106 *desc = cpu_to_caam32((options | HDR_ONE) + 1); in init_desc() 109 static inline void init_sh_desc(u32 * const desc, u32 options) in init_sh_desc() argument 112 init_desc(desc, CMD_SHARED_DESC_HDR | options); in init_sh_desc() 115 static inline void init_sh_desc_pdb(u32 * const desc, u32 options, in init_sh_desc_pdb() argument 121 options); in init_sh_desc_pdb() 124 static inline void init_job_desc(u32 * const desc, u32 options) in init_job_desc() argument 126 init_desc(desc, CMD_DESC_HDR | options); in init_job_desc() 129 static inline void init_job_desc_pdb(u32 * const desc, u32 options, in init_job_desc_pdb() argument 134 init_job_desc(desc, (((pdb_len + 1) << HDR_START_IDX_SHIFT)) | options); in init_job_desc_pdb() [all …]
|
D | pdb.h | 136 u32 options; member 204 u32 options; member 236 u8 options; member 254 u8 options; member 275 u8 options; member 287 u8 options; member 309 u8 options; member 322 u8 options; member 345 u8 options; member 353 u8 options; member [all …]
|
/drivers/soc/aspeed/ |
D | aspeed-uart-routing.c | 45 const char *const options[]; member 72 .options = { 92 .options = { 112 .options = { 130 .options = { 148 .options = { 166 .options = { 184 .options = { 202 .options = { 220 .options = { [all …]
|
/drivers/tty/serial/ |
D | earlycon.c | 86 &port->mapbase, device->options); in earlycon_print_info() 90 port->iobase, device->options); in earlycon_print_info() 93 static int __init parse_options(struct earlycon_device *device, char *options) in parse_options() argument 99 if (uart_parse_earlycon(options, &port->iotype, &addr, &options)) in parse_options() 122 if (options) { in parse_options() 123 device->baud = simple_strtoul(options, NULL, 0); in parse_options() 124 length = min(strcspn(options, " ") + 1, in parse_options() 125 (size_t)(sizeof(device->options))); in parse_options() 126 strscpy(device->options, options, length); in parse_options() 248 const char *options) in of_setup_earlycon() argument [all …]
|
/drivers/media/usb/hdpvr/ |
D | hdpvr-control.c | 108 dev->usbc_buf[0] = dev->options.bitrate; in hdpvr_set_bitrate() 109 dev->usbc_buf[2] = dev->options.peak_bitrate; in hdpvr_set_bitrate() 157 hdpvr_config_call(dev, CTRL_VIDEO_STD_TYPE, dev->options.video_std); in hdpvr_set_options() 160 dev->options.video_input+1); in hdpvr_set_options() 162 hdpvr_set_audio(dev, dev->options.audio_input+1, in hdpvr_set_options() 163 dev->options.audio_codec); in hdpvr_set_options() 167 dev->options.bitrate_mode); in hdpvr_set_options() 168 hdpvr_config_call(dev, CTRL_GOP_MODE_VALUE, dev->options.gop_mode); in hdpvr_set_options() 170 hdpvr_config_call(dev, CTRL_BRIGHTNESS, dev->options.brightness); in hdpvr_set_options() 171 hdpvr_config_call(dev, CTRL_CONTRAST, dev->options.contrast); in hdpvr_set_options() [all …]
|
/drivers/mtd/nand/raw/ |
D | nand_bbt.c | 109 if (td->options & NAND_BBT_NO_OOB) in check_pattern() 146 if (!(td->options & NAND_BBT_NO_OOB)) in add_marker_len() 150 if (td->options & NAND_BBT_VERSION) in add_marker_len() 173 int bits = td->options & NAND_BBT_NRBITS_MSK; in read_bbt() 266 if (td->options & NAND_BBT_PERCHIP) { in read_abs_bbt() 295 if (td->options & NAND_BBT_VERSION) in scan_read_data() 346 if (td->options & NAND_BBT_NO_OOB) in scan_read() 374 if (!(td->options & NAND_BBT_NO_OOB)) in bbt_get_ver_offs() 395 if (td->options & NAND_BBT_VERSION) { in read_abs_bbts() 404 if (md && (md->options & NAND_BBT_VERSION)) { in read_abs_bbts() [all …]
|
/drivers/s390/net/ |
D | qeth_l2_main.c | 396 if (card->options.sbp.reflect_promisc_primary) in qeth_l2_promisc_to_bridge() 406 card->options.sbp.role = role; in qeth_l2_promisc_to_bridge() 422 if (card->options.sbp.reflect_promisc) in qeth_l2_set_promisc_mode() 1144 QETH_CARD_HEX(card, 2, &card->options.sbp.supported_funcs, in qeth_l2_trace_features() 1145 sizeof(card->options.sbp.supported_funcs)); in qeth_l2_trace_features() 1148 QETH_CARD_HEX(card, 2, &card->options.vnicc.sup_chars, in qeth_l2_trace_features() 1149 sizeof(card->options.vnicc.sup_chars)); in qeth_l2_trace_features() 1154 if (!card->options.sbp.reflect_promisc && in qeth_l2_setup_bridgeport_attrs() 1155 card->options.sbp.role != QETH_SBP_ROLE_NONE) { in qeth_l2_setup_bridgeport_attrs() 1157 qeth_bridgeport_setrole(card, card->options.sbp.role); in qeth_l2_setup_bridgeport_attrs() [all …]
|
D | qeth_l2_sys.c | 26 card->options.sbp.supported_funcs) in qeth_bridge_port_role_state_show() 28 &card->options.sbp.role, &state); in qeth_bridge_port_role_state_show() 42 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show() 54 card->options.sbp.role, state); in qeth_bridge_port_role_state_show() 95 else if (card->options.sbp.reflect_promisc) in qeth_bridge_port_role_store() 101 card->options.sbp.role = role; in qeth_bridge_port_role_store() 103 card->options.sbp.role = role; in qeth_bridge_port_role_store() 137 enabled = card->options.sbp.hostnotification; in qeth_bridgeport_hostnotification_show() 162 card->options.sbp.hostnotification = enable; in qeth_bridgeport_hostnotification_store() 164 card->options.sbp.hostnotification = enable; in qeth_bridgeport_hostnotification_store() [all …]
|
D | qeth_l3_sys.c | 63 return qeth_l3_dev_route_show(card, &card->options.route4, buf); in qeth_l3_dev_route4_show() 109 return qeth_l3_dev_route_store(card, &card->options.route4, in qeth_l3_dev_route4_store() 121 return qeth_l3_dev_route_show(card, &card->options.route6, buf); in qeth_l3_dev_route6_show() 129 return qeth_l3_dev_route_store(card, &card->options.route6, in qeth_l3_dev_route6_store() 141 return sprintf(buf, "%i\n", card->options.sniffer ? 1 : 0); in qeth_l3_dev_sniffer_show() 153 if (card->options.cq == QETH_CQ_ENABLED) in qeth_l3_dev_sniffer_store() 169 card->options.sniffer = i; in qeth_l3_dev_sniffer_store() 174 card->options.sniffer = i; in qeth_l3_dev_sniffer_store() 201 memcpy(tmp_hsuid, card->options.hsuid, sizeof(tmp_hsuid)); in qeth_l3_dev_hsuid_show() 222 if (card->options.sniffer) { in qeth_l3_dev_hsuid_store() [all …]
|
/drivers/media/pci/ivtv/ |
D | ivtv-driver.c | 511 if (itv->options.tuner == -1) in ivtv_process_eeprom() 512 itv->options.tuner = tv.tuner_type; in ivtv_process_eeprom() 513 if (itv->options.radio == -1) in ivtv_process_eeprom() 514 itv->options.radio = (tv.has_radio != 0); in ivtv_process_eeprom() 516 if (itv->options.newi2c == -1 && tv.has_ir) { in ivtv_process_eeprom() 517 itv->options.newi2c = (tv.has_ir & 4) ? 1 : 0; in ivtv_process_eeprom() 518 if (itv->options.newi2c) { in ivtv_process_eeprom() 643 itv->options.kilobytes[IVTV_ENC_STREAM_TYPE_MPG] = enc_mpg_buffers * 1024; in ivtv_process_options() 644 itv->options.kilobytes[IVTV_ENC_STREAM_TYPE_YUV] = enc_yuv_buffers * 1024; in ivtv_process_options() 645 itv->options.kilobytes[IVTV_ENC_STREAM_TYPE_VBI] = enc_vbi_buffers * 1024; in ivtv_process_options() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-driver.c | 408 if (cx->options.tuner == -1) in cx18_process_eeprom() 409 cx->options.tuner = tv.tuner_type; in cx18_process_eeprom() 410 if (cx->options.radio == -1) in cx18_process_eeprom() 411 cx->options.radio = (tv.has_radio != 0); in cx18_process_eeprom() 528 cx->options.megabytes[CX18_ENC_STREAM_TYPE_TS] = enc_ts_buffers; in cx18_process_options() 529 cx->options.megabytes[CX18_ENC_STREAM_TYPE_MPG] = enc_mpg_buffers; in cx18_process_options() 530 cx->options.megabytes[CX18_ENC_STREAM_TYPE_IDX] = enc_idx_buffers; in cx18_process_options() 531 cx->options.megabytes[CX18_ENC_STREAM_TYPE_YUV] = enc_yuv_buffers; in cx18_process_options() 532 cx->options.megabytes[CX18_ENC_STREAM_TYPE_VBI] = enc_vbi_buffers; in cx18_process_options() 533 cx->options.megabytes[CX18_ENC_STREAM_TYPE_PCM] = enc_pcm_buffers; in cx18_process_options() [all …]
|
/drivers/comedi/drivers/ |
D | rti800.c | 260 ret = comedi_request_region(dev, it->options[0], 0x10); in rti800_attach() 272 devpriv->adc_2comp = (it->options[4] == 0); in rti800_attach() 273 devpriv->dac_2comp[0] = (it->options[6] == 0); in rti800_attach() 274 devpriv->dac_2comp[1] = (it->options[8] == 0); in rti800_attach() 286 s->n_chan = (it->options[2] ? 16 : 8); in rti800_attach() 289 s->range_table = (it->options[3] < ARRAY_SIZE(rti800_ai_ranges)) in rti800_attach() 290 ? rti800_ai_ranges[it->options[3]] in rti800_attach() 302 (it->options[5] < ARRAY_SIZE(rti800_ao_ranges)) in rti800_attach() 303 ? rti800_ao_ranges[it->options[5]] in rti800_attach() 306 (it->options[7] < ARRAY_SIZE(rti800_ao_ranges)) in rti800_attach() [all …]
|
D | pcl818.c | 918 if (it->options[4] == 1 || it->options[4] == 10) { in pcl818_set_ai_range_table() 923 switch (it->options[4]) { in pcl818_set_ai_range_table() 991 ret = comedi_request_region(dev, it->options[0], in pcl818_attach() 997 if (it->options[1] >= 2 && it->options[1] <= 7) { in pcl818_attach() 998 ret = request_irq(it->options[1], pcl818_interrupt, 0, in pcl818_attach() 1001 dev->irq = it->options[1]; in pcl818_attach() 1005 if (dev->irq && board->has_fifo && it->options[2] == -1) in pcl818_attach() 1010 pcl818_alloc_dma(dev, it->options[2]); in pcl818_attach() 1013 if ((it->options[3] == 0) || (it->options[3] == 10)) in pcl818_attach() 1027 if ((it->options[6] == 1) || (it->options[6] == 100)) in pcl818_attach() [all …]
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-dcb.c | 11 if (!(priv->link_state.options & DPNI_LINK_OPT_PFC_PAUSE)) in dpaa2_eth_dcbnl_ieee_getpfc() 79 tx_pause = dpaa2_eth_tx_pause_enabled(priv->link_state.options); in dpaa2_eth_dcbnl_ieee_setpfc() 80 if (!dpaa2_eth_rx_pause_enabled(priv->link_state.options) || !tx_pause) in dpaa2_eth_dcbnl_ieee_setpfc() 84 link_cfg.options = priv->link_state.options; in dpaa2_eth_dcbnl_ieee_setpfc() 86 link_cfg.options |= DPNI_LINK_OPT_PFC_PAUSE; in dpaa2_eth_dcbnl_ieee_setpfc() 88 link_cfg.options &= ~DPNI_LINK_OPT_PFC_PAUSE; in dpaa2_eth_dcbnl_ieee_setpfc()
|
/drivers/s390/cio/ |
D | device_ops.c | 47 cdev->private->options.fast = (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options_mask() 48 cdev->private->options.repall = (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options_mask() 49 cdev->private->options.pgroup = (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options_mask() 50 cdev->private->options.force = (flags & CCWDEV_ALLOW_FORCE) != 0; in ccw_device_set_options_mask() 51 cdev->private->options.mpath = (flags & CCWDEV_DO_MULTIPATH) != 0; in ccw_device_set_options_mask() 72 cdev->private->options.repall) || in ccw_device_set_options() 74 cdev->private->options.fast)) in ccw_device_set_options() 76 cdev->private->options.fast |= (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options() 77 cdev->private->options.repall |= (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options() 78 cdev->private->options.pgroup |= (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options() [all …]
|
/drivers/isdn/mISDN/ |
D | tei.c | 122 if (!test_bit(OPTION_L1_HOLD, &mgr->options)) { in da_deactivate() 135 if (!test_bit(OPTION_L1_HOLD, &mgr->options)) { in da_ui() 331 if (!test_bit(MGR_PH_ACTIVE, &mgr->options)) in do_send() 334 if (!test_and_set_bit(MGR_PH_NOTREADY, &mgr->options)) { in do_send() 338 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); in do_send() 345 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); in do_send() 354 if (test_bit(MGR_PH_NOTREADY, &mgr->options)) { in do_ack() 356 if (test_bit(MGR_PH_ACTIVE, &mgr->options)) { in do_ack() 368 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); in do_ack() 377 if (!test_bit(MGR_PH_ACTIVE, &mgr->options)) { in mgr_send_down() [all …]
|
/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_compressor.c | 109 if (cp110->base.options.bits.LPT_MC_CONFIG == 1) { in lpt_memory_control_config() 326 if (compressor->options.bits.CLK_GATING_DISABLED == 1) { in dce112_compressor_power_up_fbc() 369 if (compressor->options.bits.FBC_SUPPORT && in dce112_compressor_enable_fbc() 370 (compressor->options.bits.DUMMY_BACKEND == 0) && in dce112_compressor_enable_fbc() 383 if (compressor->options.bits.LPT_SUPPORT && (paths_num < 2) && in dce112_compressor_enable_fbc() 418 if (compressor->options.bits.FBC_SUPPORT && in dce112_compressor_disable_fbc() 432 if (compressor->options.bits.LPT_SUPPORT) in dce112_compressor_disable_fbc() 497 if (compressor->options.bits.LPT_SUPPORT) { in dce112_compressor_program_compressed_surface_address_and_pitch() 664 if (!compressor->options.bits.LPT_SUPPORT) in dce112_compressor_program_lpt_control() 793 compressor->base.options.raw = 0; in dce112_compressor_construct() [all …]
|
/drivers/block/rnbd/ |
D | rnbd-clt-sysfs.c | 68 char *options, *sep_opt; in rnbd_clt_parse_map_options() local 79 options = kstrdup(buf, GFP_KERNEL); in rnbd_clt_parse_map_options() 80 if (!options) in rnbd_clt_parse_map_options() 83 sep_opt = strstrip(options); in rnbd_clt_parse_map_options() 219 kfree(options); in rnbd_clt_parse_map_options() 299 char *opt, *options; in rnbd_clt_unmap_dev_store() local 307 options = strstrip(opt); in rnbd_clt_unmap_dev_store() 309 if (sysfs_streq(options, "normal")) { in rnbd_clt_unmap_dev_store() 311 } else if (sysfs_streq(options, "force")) { in rnbd_clt_unmap_dev_store() 316 options); in rnbd_clt_unmap_dev_store() [all …]
|
/drivers/watchdog/ |
D | riowd.c | 91 .options = WDIOF_SETTIMEOUT, in riowd_ioctl() 97 unsigned int options; in riowd_ioctl() local 117 if (copy_from_user(&options, argp, sizeof(options))) in riowd_ioctl() 120 if (options & WDIOS_DISABLECARD) in riowd_ioctl() 122 else if (options & WDIOS_ENABLECARD) in riowd_ioctl()
|
D | sbc_epx_c3.c | 104 int options, retval = -EINVAL; in epx_c3_ioctl() local 107 .options = WDIOF_KEEPALIVEPING, in epx_c3_ioctl() 121 if (get_user(options, argp)) in epx_c3_ioctl() 124 if (options & WDIOS_DISABLECARD) { in epx_c3_ioctl() 129 if (options & WDIOS_ENABLECARD) { in epx_c3_ioctl()
|
/drivers/net/ethernet/i825xx/ |
D | sni_82596.c | 58 if (lp->options & OPT_MPU_16BIT) { in mpu_port() 76 struct resource *res, *ca, *idprom, *options; in sni_82596_probe() local 85 options = platform_get_resource(dev, 0, 0); in sni_82596_probe() 87 if (!res || !ca || !options || !idprom) in sni_82596_probe() 130 lp->options = options->flags & IORESOURCE_BITS; in sni_82596_probe()
|