/drivers/media/video/zoran/ |
D | zoran_card.c | 732 struct zoran_jpg_settings *settings, in zoran_check_jpg_settings() argument 740 ZR_DEVNAME(zr), __func__, settings->decimation, settings->HorDcm, in zoran_check_jpg_settings() 741 settings->VerDcm, settings->TmpDcm); in zoran_check_jpg_settings() 745 ZR_DEVNAME(zr), __func__, settings->img_x, settings->img_y, in zoran_check_jpg_settings() 746 settings->img_width, settings->img_height); in zoran_check_jpg_settings() 748 switch (settings->decimation) { in zoran_check_jpg_settings() 751 settings->HorDcm = 1; in zoran_check_jpg_settings() 752 settings->VerDcm = 1; in zoran_check_jpg_settings() 753 settings->TmpDcm = 1; in zoran_check_jpg_settings() 754 settings->field_per_buff = 2; in zoran_check_jpg_settings() [all …]
|
D | zoran_driver.c | 168 zoran_v4l2_calc_bufsize (struct zoran_jpg_settings *settings) in zoran_v4l2_calc_bufsize() argument 170 __u8 div = settings->VerDcm * settings->HorDcm * settings->TmpDcm; in zoran_v4l2_calc_bufsize() 1688 struct zoran_jpg_settings settings; in zoran_try_fmt_vid_out() local 1695 settings = fh->jpg_settings; in zoran_try_fmt_vid_out() 1699 settings.TmpDcm = 1; in zoran_try_fmt_vid_out() 1701 settings.TmpDcm = 2; in zoran_try_fmt_vid_out() 1702 settings.decimation = 0; in zoran_try_fmt_vid_out() 1704 settings.VerDcm = 2; in zoran_try_fmt_vid_out() 1706 settings.VerDcm = 1; in zoran_try_fmt_vid_out() 1708 settings.HorDcm = 4; in zoran_try_fmt_vid_out() [all …]
|
/drivers/hid/ |
D | hid-roccat-kone.c | 97 static void kone_set_settings_checksum(struct kone_settings *settings) in kone_set_settings_checksum() argument 100 unsigned char *address = (unsigned char *)settings; in kone_set_settings_checksum() 105 settings->checksum = cpu_to_le16(checksum); in kone_set_settings_checksum() 163 struct kone_settings const *settings) in kone_set_settings() argument 167 settings, sizeof(struct kone_settings)); in kone_set_settings() 281 memcpy(buf, ((char const *)&kone->settings) + off, count); in kone_sysfs_read_settings() 306 difference = memcmp(buf, &kone->settings, sizeof(struct kone_settings)); in kone_sysfs_write_settings() 315 old_profile = kone->settings.startup_profile; in kone_sysfs_write_settings() 316 memcpy(&kone->settings, buf, sizeof(struct kone_settings)); in kone_sysfs_write_settings() 318 kone_profile_activated(kone, kone->settings.startup_profile); in kone_sysfs_write_settings() [all …]
|
D | hid-roccat-pyra.c | 132 struct pyra_profile_settings const *settings) in pyra_set_profile_settings() argument 134 return pyra_send(usb_dev, PYRA_COMMAND_PROFILE_SETTINGS, settings, in pyra_set_profile_settings() 146 struct pyra_settings const *settings) in pyra_set_settings() argument 148 return pyra_send(usb_dev, PYRA_COMMAND_SETTINGS, settings, in pyra_set_settings() 285 memcpy(buf, ((char const *)&pyra->settings) + off, count); in pyra_sysfs_read_settings() 307 difference = memcmp(buf, &pyra->settings, sizeof(struct pyra_settings)); in pyra_sysfs_write_settings() 316 memcpy(&pyra->settings, buf, in pyra_sysfs_write_settings() 319 profile_activated(pyra, pyra->settings.startup_profile); in pyra_sysfs_write_settings() 322 roccat_report.value = pyra->settings.startup_profile + 1; in pyra_sysfs_write_settings() 361 return snprintf(buf, PAGE_SIZE, "%d\n", pyra->settings.startup_profile); in pyra_sysfs_show_startup_profile() [all …]
|
/drivers/staging/comedi/drivers/ |
D | serial2002.c | 240 struct termios settings; in tty_setspeed() local 242 tty_ioctl(f, TCGETS, (unsigned long)&settings); in tty_setspeed() 244 settings.c_iflag = 0; in tty_setspeed() 245 settings.c_oflag = 0; in tty_setspeed() 246 settings.c_lflag = 0; in tty_setspeed() 247 settings.c_cflag = CLOCAL | CS8 | CREAD; in tty_setspeed() 248 settings.c_cc[VMIN] = 0; in tty_setspeed() 249 settings.c_cc[VTIME] = 0; in tty_setspeed() 252 settings.c_cflag |= B2400; in tty_setspeed() 256 settings.c_cflag |= B4800; in tty_setspeed() [all …]
|
/drivers/media/video/gspca/m5602/ |
D | m5602_s5k83a.c | 181 sens_priv->settings = in s5k83a_probe() 183 if (!sens_priv->settings) { in s5k83a_probe() 197 sens_priv->settings[i] = s5k83a_ctrls[i].qctrl.default_value; in s5k83a_probe() 207 ((struct s5k83a_priv *) sd->sensor_priv)->settings; in s5k83a_init() 351 kfree(sens_priv->settings); in s5k83a_disconnect() 360 *val = sens_priv->settings[GAIN_IDX]; in s5k83a_get_gain() 371 sens_priv->settings[GAIN_IDX] = val; in s5k83a_set_gain() 399 *val = sens_priv->settings[BRIGHTNESS_IDX]; in s5k83a_get_brightness() 410 sens_priv->settings[BRIGHTNESS_IDX] = val; in s5k83a_set_brightness() 421 *val = sens_priv->settings[EXPOSURE_IDX]; in s5k83a_get_exposure() [all …]
|
/drivers/net/wan/ |
D | hdlc_fr.c | 138 fr_proto settings; member 352 if (state(hdlc)->settings.lmi == LMI_NONE) in pvc_open() 369 if (state(hdlc)->settings.lmi == LMI_NONE) in pvc_close() 372 if (state(hdlc)->settings.dce) { in pvc_close() 473 int lmi = state(hdlc)->settings.lmi; in fr_lmi_send() 474 int dce = state(hdlc)->settings.dce; in fr_lmi_send() 577 if (state(hdlc)->settings.lmi == LMI_NONE) { in fr_set_link_state() 591 if (!state(hdlc)->settings.dce) in fr_set_link_state() 606 if (state(hdlc)->settings.dce) { in fr_timer() 609 state(hdlc)->settings.t392 * HZ); in fr_timer() [all …]
|
D | hdlc_cisco.c | 54 cisco_proto settings; member 268 time_after(jiffies, st->last_poll + st->settings.timeout * HZ)) { in cisco_timer() 278 st->timer.expires = jiffies + st->settings.interval * HZ; in cisco_timer() 350 if (copy_to_user(cisco_s, &state(hdlc)->settings, size)) in cisco_ioctl() 377 memcpy(&state(hdlc)->settings, &new_settings, size); in cisco_ioctl()
|
D | pci200syn.c | 72 sync_serial_settings settings; member 129 switch(port->settings.clock_type) { in pci200_set_iface() 209 if (copy_to_user(line, &port->settings, size)) in pci200_ioctl() 230 memcpy(&port->settings, &new_line, size); /* Update settings */ in pci200_ioctl() 399 port->settings.clock_type = CLOCK_EXT; in pci200_pci_init_one()
|
D | c101.c | 64 sync_serial_settings settings; member 158 switch(port->settings.clock_type) { in c101_set_iface() 254 if (copy_to_user(line, &port->settings, size)) in c101_ioctl() 274 memcpy(&port->settings, &new_line, size); /* Update settings */ in c101_ioctl() 380 card->settings.clock_type = CLOCK_EXT; in c101_run()
|
D | dscc4.c | 238 sync_serial_settings settings; member 998 sync_serial_settings *settings = &dpriv->settings; in dscc4_loopback_check() local 1000 if (settings->loopback && (settings->clock_type != CLOCK_INT)) { in dscc4_loopback_check() 1315 const size_t size = sizeof(dpriv->settings); in dscc4_ioctl() 1331 if (copy_to_user(line, &dpriv->settings, size)) in dscc4_ioctl() 1343 if (copy_from_user(&dpriv->settings, line, size)) in dscc4_ioctl() 1373 sync_serial_settings *settings = &dpriv->settings; in dscc4_clock_setting() local 1377 bps = settings->clock_rate; in dscc4_clock_setting() 1383 if (settings->clock_rate != bps) { in dscc4_clock_setting() 1385 dev->name, settings->clock_rate, bps); in dscc4_clock_setting() [all …]
|
D | n2.c | 101 sync_serial_settings settings; member 176 switch(port->settings.clock_type) { in n2_set_iface() 272 if (copy_to_user(line, &port->settings, size)) in n2_ioctl() 292 memcpy(&port->settings, &new_line, size); /* Update settings */ in n2_ioctl() 473 port->settings.clock_type = CLOCK_EXT; in n2_run()
|
D | pc300too.c | 84 sync_serial_settings settings; member 130 switch(port->settings.clock_type) { in pc300_set_iface() 217 if (copy_to_user(line, &port->settings, size)) in pc300_ioctl() 255 memcpy(&port->settings, &new_line, size); /* Update settings */ in pc300_ioctl() 459 port->settings.clock_type = CLOCK_EXT; in pc300_pci_init_one()
|
D | hd64572.c | 379 if (port->settings.clock_rate > 0) { in sca_set_port() 386 tmc = CLOCK_BASE / brv / port->settings.clock_rate; in sca_set_port() 396 port->settings.clock_rate = CLOCK_BASE / brv / tmc; in sca_set_port() 400 port->settings.clock_rate = CLOCK_BASE / (256 * 512); in sca_set_port() 415 if (port->settings.loopback) in sca_set_port() 440 if (port->settings.loopback) in sca_open()
|
D | hd64570.c | 416 if (port->settings.clock_rate > 0) { in sca_set_port() 423 tmc = CLOCK_BASE / brv / port->settings.clock_rate; in sca_set_port() 433 port->settings.clock_rate = CLOCK_BASE / brv / tmc; in sca_set_port() 437 port->settings.clock_rate = CLOCK_BASE / (256 * 512); in sca_set_port() 451 if (port->settings.loopback) in sca_set_port() 476 if (port->settings.loopback) in sca_open()
|
/drivers/isdn/hisax/ |
D | Kconfig | 98 non-standard IRQ/port/shmem settings. 108 non-standard IRQ/port settings. 132 non-standard IRQ/port settings. 155 non-standard IRQ/port settings. 165 non-standard IRQ/port settings. 175 non-standard IRQ/port settings. 186 non-standard IRQ/port settings. 196 non-standard IRQ/port settings. 207 non-standard IRQ/port settings. 216 non-standard IRQ/port settings. [all …]
|
/drivers/net/phy/ |
D | phy.c | 123 static const struct phy_setting settings[] = { variable 161 #define MAX_NUM_SETTINGS ARRAY_SIZE(settings) 177 while (idx < ARRAY_SIZE(settings) && in phy_find_setting() 178 (settings[idx].speed != speed || in phy_find_setting() 179 settings[idx].duplex != duplex)) in phy_find_setting() 197 while (idx < MAX_NUM_SETTINGS && !(settings[idx].setting & features)) in phy_find_valid() 223 phydev->speed = settings[idx].speed; in phy_sanitize_settings() 224 phydev->duplex = settings[idx].duplex; in phy_sanitize_settings() 482 phydev->speed = settings[idx].speed; in phy_force_reduction() 483 phydev->duplex = settings[idx].duplex; in phy_force_reduction() [all …]
|
/drivers/block/ |
D | pktcdvd.c | 86 #define ZONE(sector, pd) (((sector) + (pd)->offset) & ~((pd)->settings.size - 1)) 647 pkt = pkt_alloc_packet_data(pd->settings.size >> 2); in pkt_grow_pktlist() 960 if ((pd->settings.size << 9) / CD_FRAMESIZE in pkt_set_segment_merging() 967 } else if ((pd->settings.size << 9) / PAGE_SIZE in pkt_set_segment_merging() 1313 pd->current_sector = zone + pd->settings.size; in pkt_handle_queue() 1315 BUG_ON(pkt->frames != pd->settings.size >> 2); in pkt_handle_queue() 1659 printk(DRIVER_NAME": %s packets, ", pd->settings.fp ? "Fixed" : "Variable"); in pkt_print_settings() 1660 printk("%u blocks, ", pd->settings.size >> 2); in pkt_print_settings() 1661 printk("Mode-%c disc\n", pd->settings.block_mode == 8 ? '1' : '2'); in pkt_print_settings() 1819 wp->fp = pd->settings.fp; in pkt_set_write_settings() [all …]
|
/drivers/usb/serial/ |
D | kl5kusb105.c | 147 struct klsi_105_port_settings *settings) in klsi_105_chg_port_settings() argument 157 settings, in klsi_105_chg_port_settings() 165 settings->pktlen, settings->baudrate, settings->databits, in klsi_105_chg_port_settings() 166 settings->unknown1, settings->unknown2); in klsi_105_chg_port_settings()
|
/drivers/pci/pcie/aer/ |
D | Kconfig | 19 bool "PCI Express ECRC settings control" 22 Used to override firmware/bios settings for PCI Express ECRC
|
/drivers/staging/media/as102/ |
D | as102_fe.c | 90 struct dvb_frontend_tune_settings *settings) { in as102_fe_get_tune_settings() argument 94 dprintk(debug, "step_size = %d\n", settings->step_size); in as102_fe_get_tune_settings() 95 dprintk(debug, "max_drift = %d\n", settings->max_drift); in as102_fe_get_tune_settings() 96 dprintk(debug, "min_delay_ms = %d -> %d\n", settings->min_delay_ms, in as102_fe_get_tune_settings() 100 settings->min_delay_ms = 1000; in as102_fe_get_tune_settings()
|
/drivers/mfd/ |
D | ab5500-core.c | 1264 struct abx500_init_settings *settings, unsigned int size) in ab5500_setup() argument 1271 settings[i].bank, in ab5500_setup() 1272 settings[i].reg, in ab5500_setup() 1273 0xFF, settings[i].setting); in ab5500_setup() 1278 if ((settings[i].bank == AB5500_BANK_IT) && in ab5500_setup() 1279 (AB5500_MASK_BASE <= settings[i].reg) && in ab5500_setup() 1280 (settings[i].reg <= AB5500_MASK_END)) { in ab5500_setup() 1281 ab->mask[settings[i].reg - AB5500_MASK_BASE] = in ab5500_setup() 1282 settings[i].setting; in ab5500_setup()
|
/drivers/hwmon/ |
D | abituguru3.c | 192 u8 settings[48][3]; member 851 value = data->settings[sensor->port][attr->nr]; in show_value() 888 (!attr->nr || (data->settings[port][0] & attr->nr))) in show_alarm() 900 if (data->settings[data->sensors[attr->index].port][0] & attr->nr) in show_mask() 1117 data->settings[i], 3) != 3) in abituguru3_update_device() 1130 data->settings[32 + i], 2) != 2) in abituguru3_update_device()
|
/drivers/pinctrl/ |
D | core.c | 486 INIT_LIST_HEAD(&state->settings); in create_state() 543 list_add_tail(&setting->node, &state->settings); in add_setting() 644 list_for_each_entry_safe(setting, n2, &state->settings, node) { in pinctrl_put_locked() 730 list_for_each_entry(setting, &p->state->settings, node) { in pinctrl_select_state_locked() 734 list_for_each_entry(setting2, &state->settings, node) { in pinctrl_select_state_locked() 751 list_for_each_entry(setting, &state->settings, node) { in pinctrl_select_state_locked() 1062 list_for_each_entry(setting, &state->settings, node) { in pinctrl_show()
|
/drivers/ide/ |
D | ide-proc.c | 292 d = drive->settings; in ide_settings_proc_show() 412 if (drive->settings) in ide_settings_proc_write() 413 setting = ide_find_setting(drive->settings, name); in ide_settings_proc_write() 650 drive->settings = driver->proc_devsets(drive); in ide_proc_register_driver() 678 drive->settings = NULL; in ide_proc_unregister_driver()
|