/drivers/tty/serial/ |
D | earlycon.c | 53 char *options) in parse_options() argument 59 if (!options) in parse_options() 62 mmio = !strncmp(options, "mmio,", 5); in parse_options() 63 mmio32 = !strncmp(options, "mmio32,", 7); in parse_options() 66 options += mmio ? 5 : 7; in parse_options() 67 ret = kstrtoul(options, 0, &addr); in parse_options() 73 } else if (!strncmp(options, "io,", 3)) { in parse_options() 75 options += 3; in parse_options() 76 ret = kstrtoul(options, 0, &addr); in parse_options() 81 } else if (!strncmp(options, "0x", 2)) { in parse_options() [all …]
|
/drivers/net/ppp/ |
D | ppp_deflate.c | 39 static void *z_comp_alloc(unsigned char *options, int opt_len); 40 static void *z_decomp_alloc(unsigned char *options, int opt_len); 43 static int z_comp_init(void *state, unsigned char *options, 46 static int z_decomp_init(void *state, unsigned char *options, 88 static void *z_comp_alloc(unsigned char *options, int opt_len) in z_comp_alloc() argument 94 (options[0] != CI_DEFLATE && options[0] != CI_DEFLATE_DRAFT) || in z_comp_alloc() 95 options[1] != CILEN_DEFLATE || in z_comp_alloc() 96 DEFLATE_METHOD(options[2]) != DEFLATE_METHOD_VAL || in z_comp_alloc() 97 options[3] != DEFLATE_CHK_SEQUENCE) in z_comp_alloc() 99 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 | 194 static void *mppe_alloc(unsigned char *options, int optlen) in mppe_alloc() argument 200 options[0] != CI_MPPE || options[1] != CILEN_MPPE) in mppe_alloc() 229 memcpy(state->master_key, &options[CILEN_MPPE], in mppe_alloc() 274 mppe_init(void *arg, unsigned char *options, int optlen, int unit, int debug, in mppe_init() argument 281 options[0] != CI_MPPE || options[1] != CILEN_MPPE) in mppe_init() 284 MPPE_CI_TO_OPTS(&options[2], mppe_opts); in mppe_init() 339 mppe_comp_init(void *arg, unsigned char *options, int optlen, int unit, in mppe_comp_init() argument 343 return mppe_init(arg, options, optlen, unit, debug, "mppe_comp_init"); in mppe_comp_init() 455 mppe_decomp_init(void *arg, unsigned char *options, int optlen, int unit, in mppe_decomp_init() argument 459 return mppe_init(arg, options, optlen, unit, debug, "mppe_decomp_init"); in mppe_decomp_init()
|
/drivers/crypto/caam/ |
D | desc_constr.h | 52 static inline void init_desc(u32 *desc, u32 options) in init_desc() argument 54 *desc = (options | HDR_ONE) + 1; in init_desc() 57 static inline void init_sh_desc(u32 *desc, u32 options) in init_sh_desc() argument 60 init_desc(desc, CMD_SHARED_DESC_HDR | options); in init_sh_desc() 63 static inline void init_sh_desc_pdb(u32 *desc, u32 options, size_t pdb_bytes) in init_sh_desc_pdb() argument 68 options); in init_sh_desc_pdb() 71 static inline void init_job_desc(u32 *desc, u32 options) in init_job_desc() argument 73 init_desc(desc, CMD_DESC_HDR | options); in init_job_desc() 86 u32 options) in init_job_desc_shared() argument 89 init_job_desc(desc, HDR_SHARED | options | in init_job_desc_shared() [all …]
|
D | pdb.h | 84 u8 options; member 123 u8 options; member 156 u8 options; member 174 u8 options; member 195 u8 options; member 207 u8 options; member 229 u8 options; member 242 u8 options; member 265 u8 options; member 273 u8 options; member [all …]
|
/drivers/pcmcia/ |
D | vrc4171_card.c | 635 static int vrc4171_card_setup(char *options) in vrc4171_card_setup() argument 637 if (options == NULL || *options == '\0') in vrc4171_card_setup() 640 if (strncmp(options, "irq:", 4) == 0) { in vrc4171_card_setup() 642 options += 4; in vrc4171_card_setup() 643 irq = simple_strtoul(options, &options, 0); in vrc4171_card_setup() 647 if (*options != ',') in vrc4171_card_setup() 649 options++; in vrc4171_card_setup() 652 if (strncmp(options, "slota:", 6) == 0) { in vrc4171_card_setup() 653 options += 6; in vrc4171_card_setup() 654 if (*options != '\0') { in vrc4171_card_setup() [all …]
|
D | vrc4173_cardu.c | 536 static int vrc4173_cardu_setup(char *options) in vrc4173_cardu_setup() argument 538 if (options == NULL || *options == '\0') in vrc4173_cardu_setup() 541 if (strncmp(options, "cardu1:", 7) == 0) { in vrc4173_cardu_setup() 542 options += 7; in vrc4173_cardu_setup() 543 if (*options != '\0') { in vrc4173_cardu_setup() 544 if (strncmp(options, "noprobe", 7) == 0) { in vrc4173_cardu_setup() 546 options += 7; in vrc4173_cardu_setup() 549 if (*options != ',') in vrc4173_cardu_setup() 555 if (strncmp(options, "cardu2:", 7) == 0) { in vrc4173_cardu_setup() 556 options += 7; in vrc4173_cardu_setup() [all …]
|
/drivers/mtd/nand/ |
D | nand_bbt.c | 97 if (td->options & NAND_BBT_NO_OOB) in check_pattern() 101 if (td->options & NAND_BBT_SCANEMPTY) in check_pattern() 110 if (td->options & NAND_BBT_SCANEMPTY) { 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() 259 if (td->options & NAND_BBT_PERCHIP) { in read_abs_bbt() 287 if (td->options & NAND_BBT_VERSION) in scan_read_data() 337 if (td->options & NAND_BBT_NO_OOB) in scan_read() 363 if (!(td->options & NAND_BBT_NO_OOB)) in bbt_get_ver_offs() [all …]
|
/drivers/media/usb/hdpvr/ |
D | hdpvr-control.c | 131 dev->usbc_buf[0] = dev->options.bitrate; in hdpvr_set_bitrate() 132 dev->usbc_buf[2] = dev->options.peak_bitrate; in hdpvr_set_bitrate() 180 hdpvr_config_call(dev, CTRL_VIDEO_STD_TYPE, dev->options.video_std); in hdpvr_set_options() 183 dev->options.video_input+1); in hdpvr_set_options() 185 hdpvr_set_audio(dev, dev->options.audio_input+1, in hdpvr_set_options() 186 dev->options.audio_codec); in hdpvr_set_options() 190 dev->options.bitrate_mode); in hdpvr_set_options() 191 hdpvr_config_call(dev, CTRL_GOP_MODE_VALUE, dev->options.gop_mode); in hdpvr_set_options() 193 hdpvr_config_call(dev, CTRL_BRIGHTNESS, dev->options.brightness); in hdpvr_set_options() 194 hdpvr_config_call(dev, CTRL_CONTRAST, dev->options.contrast); in hdpvr_set_options() [all …]
|
/drivers/media/pci/ivtv/ |
D | ivtv-driver.c | 515 if (itv->options.tuner == -1) in ivtv_process_eeprom() 516 itv->options.tuner = tv.tuner_type; in ivtv_process_eeprom() 517 if (itv->options.radio == -1) in ivtv_process_eeprom() 518 itv->options.radio = (tv.has_radio != 0); in ivtv_process_eeprom() 520 if (itv->options.newi2c == -1 && tv.has_ir) { in ivtv_process_eeprom() 521 itv->options.newi2c = (tv.has_ir & 4) ? 1 : 0; in ivtv_process_eeprom() 522 if (itv->options.newi2c) { in ivtv_process_eeprom() 647 itv->options.kilobytes[IVTV_ENC_STREAM_TYPE_MPG] = enc_mpg_buffers * 1024; in ivtv_process_options() 648 itv->options.kilobytes[IVTV_ENC_STREAM_TYPE_YUV] = enc_yuv_buffers * 1024; in ivtv_process_options() 649 itv->options.kilobytes[IVTV_ENC_STREAM_TYPE_VBI] = enc_vbi_buffers * 1024; in ivtv_process_options() [all …]
|
/drivers/s390/cio/ |
D | device_ops.c | 46 cdev->private->options.fast = (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options_mask() 47 cdev->private->options.repall = (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options_mask() 48 cdev->private->options.pgroup = (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options_mask() 49 cdev->private->options.force = (flags & CCWDEV_ALLOW_FORCE) != 0; in ccw_device_set_options_mask() 50 cdev->private->options.mpath = (flags & CCWDEV_DO_MULTIPATH) != 0; in ccw_device_set_options_mask() 71 cdev->private->options.repall) || in ccw_device_set_options() 73 cdev->private->options.fast)) in ccw_device_set_options() 75 cdev->private->options.fast |= (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options() 76 cdev->private->options.repall |= (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options() 77 cdev->private->options.pgroup |= (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-driver.c | 416 if (cx->options.tuner == -1) in cx18_process_eeprom() 417 cx->options.tuner = tv.tuner_type; in cx18_process_eeprom() 418 if (cx->options.radio == -1) in cx18_process_eeprom() 419 cx->options.radio = (tv.has_radio != 0); in cx18_process_eeprom() 536 cx->options.megabytes[CX18_ENC_STREAM_TYPE_TS] = enc_ts_buffers; in cx18_process_options() 537 cx->options.megabytes[CX18_ENC_STREAM_TYPE_MPG] = enc_mpg_buffers; in cx18_process_options() 538 cx->options.megabytes[CX18_ENC_STREAM_TYPE_IDX] = enc_idx_buffers; in cx18_process_options() 539 cx->options.megabytes[CX18_ENC_STREAM_TYPE_YUV] = enc_yuv_buffers; in cx18_process_options() 540 cx->options.megabytes[CX18_ENC_STREAM_TYPE_VBI] = enc_vbi_buffers; in cx18_process_options() 541 cx->options.megabytes[CX18_ENC_STREAM_TYPE_PCM] = enc_pcm_buffers; in cx18_process_options() [all …]
|
/drivers/staging/comedi/drivers/ |
D | rti800.c | 297 ret = comedi_request_region(dev, it->options[0], RTI800_IOSIZE); in rti800_attach() 310 devpriv->adc_2comp = (it->options[4] == 0); in rti800_attach() 311 devpriv->dac_2comp[0] = (it->options[6] == 0); in rti800_attach() 312 devpriv->dac_2comp[1] = (it->options[8] == 0); in rti800_attach() 324 s->n_chan = (it->options[2] ? 16 : 8); in rti800_attach() 327 s->range_table = (it->options[3] < ARRAY_SIZE(rti800_ai_ranges)) in rti800_attach() 328 ? rti800_ai_ranges[it->options[3]] in rti800_attach() 342 (it->options[5] < ARRAY_SIZE(rti800_ao_ranges)) in rti800_attach() 343 ? rti800_ao_ranges[it->options[5]] in rti800_attach() 346 (it->options[7] < ARRAY_SIZE(rti800_ao_ranges)) in rti800_attach() [all …]
|
D | pcl724.c | 111 ((it->options[1] == 1) || (it->options[1] == 96))) in pcl724_attach() 113 ret = comedi_request_region(dev, it->options[0], iorange); in pcl724_attach() 120 irq = it->options[1]; in pcl724_attach() 147 if ((board->can_have96) && ((it->options[1] == 1) in pcl724_attach() 148 || (it->options[1] == 96))) in pcl724_attach()
|
D | dt2815.c | 165 ret = comedi_request_region(dev, it->options[0], DT2815_SIZE); in dt2815_attach() 188 current_range_type = (it->options[3]) in dt2815_attach() 190 voltage_range_type = (it->options[2]) in dt2815_attach() 193 devpriv->range_type_list[i] = (it->options[5 + i]) in dt2815_attach() 207 program = (it->options[4] & 0x3) << 3 | 0x7; in dt2815_attach()
|
/drivers/isdn/mISDN/ |
D | tei.c | 131 if (!test_bit(OPTION_L1_HOLD, &mgr->options)) { in da_deactivate() 144 if (!test_bit(OPTION_L1_HOLD, &mgr->options)) { in da_ui() 340 if (!test_bit(MGR_PH_ACTIVE, &mgr->options)) in do_send() 343 if (!test_and_set_bit(MGR_PH_NOTREADY, &mgr->options)) { in do_send() 347 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); in do_send() 354 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); in do_send() 363 if (test_bit(MGR_PH_NOTREADY, &mgr->options)) { in do_ack() 365 if (test_bit(MGR_PH_ACTIVE, &mgr->options)) { in do_ack() 377 test_and_clear_bit(MGR_PH_NOTREADY, &mgr->options); in do_ack() 386 if (!test_bit(MGR_PH_ACTIVE, &mgr->options)) { in mgr_send_down() [all …]
|
/drivers/s390/net/ |
D | qeth_l3_sys.c | 52 return qeth_l3_dev_route_show(card, &card->options.route4, buf); in qeth_l3_dev_route4_show() 104 return qeth_l3_dev_route_store(card, &card->options.route4, in qeth_l3_dev_route4_store() 119 return qeth_l3_dev_route_show(card, &card->options.route6, buf); in qeth_l3_dev_route6_show() 130 return qeth_l3_dev_route_store(card, &card->options.route6, in qeth_l3_dev_route6_store() 145 return sprintf(buf, "%i\n", card->options.fake_broadcast? 1:0); in qeth_l3_dev_fake_broadcast_show() 167 card->options.fake_broadcast = i; in qeth_l3_dev_fake_broadcast_store() 186 return sprintf(buf, "%i\n", card->options.sniffer ? 1 : 0); in qeth_l3_dev_sniffer_show() 201 if (card->options.cq == QETH_CQ_ENABLED) in qeth_l3_dev_sniffer_store() 218 card->options.sniffer = i; in qeth_l3_dev_sniffer_store() 223 card->options.sniffer = i; in qeth_l3_dev_sniffer_store() [all …]
|
/drivers/watchdog/ |
D | riowd.c | 92 .options = WDIOF_SETTIMEOUT, in riowd_ioctl() 98 unsigned int options; in riowd_ioctl() local 118 if (copy_from_user(&options, argp, sizeof(options))) in riowd_ioctl() 121 if (options & WDIOS_DISABLECARD) in riowd_ioctl() 123 else if (options & WDIOS_ENABLECARD) in riowd_ioctl()
|
D | sbc_epx_c3.c | 108 int options, retval = -EINVAL; in epx_c3_ioctl() local 111 .options = WDIOF_KEEPALIVEPING, in epx_c3_ioctl() 125 if (get_user(options, argp)) in epx_c3_ioctl() 128 if (options & WDIOS_DISABLECARD) { in epx_c3_ioctl() 133 if (options & WDIOS_ENABLECARD) { in epx_c3_ioctl()
|
D | indydog.c | 114 int options, retval = -EINVAL; in indydog_ioctl() local 116 .options = WDIOF_KEEPALIVEPING, in indydog_ioctl() 132 if (get_user(options, (int *)arg)) in indydog_ioctl() 134 if (options & WDIOS_DISABLECARD) { in indydog_ioctl() 138 if (options & WDIOS_ENABLECARD) { in indydog_ioctl()
|
/drivers/net/ethernet/i825xx/ |
D | sni_82596.c | 64 if (lp->options & OPT_MPU_16BIT) { in mpu_port() 82 struct resource *res, *ca, *idprom, *options; in sni_82596_probe() local 90 options = platform_get_resource(dev, 0, 0); in sni_82596_probe() 92 if (!res || !ca || !options || !idprom) in sni_82596_probe() 133 lp->options = options->flags & IORESOURCE_BITS; in sni_82596_probe()
|
/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc.c | 113 struct ttm_pool_opts options; member 168 m->options.max_size = val; in ttm_pool_store() 170 m->options.small = val; in ttm_pool_store() 181 m->options.alloc_size = val; in ttm_pool_store() 195 val = m->options.max_size; in ttm_pool_show() 197 val = m->options.small; in ttm_pool_show() 199 val = m->options.alloc_size; in ttm_pool_show() 572 if (count < _manager->options.small in ttm_page_pool_fill_locked() 575 unsigned alloc_size = _manager->options.alloc_size; in ttm_page_pool_fill_locked() 688 if (pool->npages > _manager->options.max_size) { in ttm_put_pages() [all …]
|
/drivers/net/ethernet/via/ |
D | via-velocity.c | 575 for (i = 0; i < vptr->options.numrx; ++i) in velocity_rx_reset() 578 writew(vptr->options.numrx, ®s->RBRDU); in velocity_rx_reset() 581 writew(vptr->options.numrx - 1, ®s->RDCSize); in velocity_rx_reset() 596 switch (vptr->options.spd_dpx) { in velocity_get_opt_media_mode() 796 switch (vptr->options.flow_cntl) { in set_mii_flow_control() 1002 } else if (vptr->options.spd_dpx == SPD_DPX_AUTO) { in velocity_print_link_status() 1018 switch (vptr->options.spd_dpx) { in velocity_print_link_status() 1052 switch (vptr->options.flow_cntl) { in enable_flow_control_ability() 1255 txqueue_timer = vptr->options.txqueue_timer; in setup_queue_timers() 1256 rxqueue_timer = vptr->options.rxqueue_timer; in setup_queue_timers() [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_mid.c | 562 req->options |= BIT_0; in qla25xx_delete_req_que() 577 rsp->options |= BIT_0; in qla25xx_delete_rsp_que() 626 qla25xx_create_req_que(struct qla_hw_data *ha, uint16_t options, in qla25xx_create_req_que() argument 683 options |= BIT_4; in qla25xx_create_req_que() 686 options |= BIT_5; in qla25xx_create_req_que() 687 req->options = options; in qla25xx_create_req_que() 690 "options=0x%x.\n", req->options); in qla25xx_create_req_que() 692 "options=0x%x.\n", req->options); in qla25xx_create_req_que() 748 qla25xx_create_rsp_que(struct qla_hw_data *ha, uint16_t options, in qla25xx_create_rsp_que() argument 799 options |= BIT_4; in qla25xx_create_rsp_que() [all …]
|