Home
last modified time | relevance | path

Searched refs:settings (Results 1 – 25 of 53) sorted by relevance

123

/drivers/media/video/zoran/
Dzoran_card.c732 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 …]
Dzoran_driver.c168 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/
Dhid-roccat-kone.c97 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 …]
Dhid-roccat-pyra.c132 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/
Dserial2002.c240 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/
Dm5602_s5k83a.c181 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/
Dhdlc_fr.c138 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 …]
Dhdlc_cisco.c54 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()
Dpci200syn.c72 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()
Dc101.c64 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()
Ddscc4.c238 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 …]
Dn2.c101 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()
Dpc300too.c84 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()
Dhd64572.c379 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()
Dhd64570.c416 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/
DKconfig98 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/
Dphy.c123 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/
Dpktcdvd.c86 #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/
Dkl5kusb105.c147 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/
DKconfig19 bool "PCI Express ECRC settings control"
22 Used to override firmware/bios settings for PCI Express ECRC
/drivers/staging/media/as102/
Das102_fe.c90 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/
Dab5500-core.c1264 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/
Dabituguru3.c192 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/
Dcore.c486 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/
Dide-proc.c292 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()

123