Home
last modified time | relevance | path

Searched refs:spd (Results 1 – 25 of 71) sorted by relevance

123

/linux/drivers/media/tuners/
A Dtda827x.c83 u8 spd; member
175 N = ((tuner_freq + 125000) / 250000) << (tda827x_table[i].spd + 2); in tda827xo_set_params()
181 buf[5] = (tda827x_table[i].spd << 6) + (tda827x_table[i].div1p5 << 5) + in tda827xo_set_params()
262 N = N << tda827x_table[i].spd; in tda827xo_set_analog_params()
269 tuner_reg[5] = (tda827x_table[i].spd << 6) + in tda827xo_set_analog_params()
336 u8 spd; member
369 { .lomax = 0, .svco = 0, .spd = 0, .scr = 0, .sbs = 0, .gc3 = 0}
549 N = ((tuner_freq + 31250) / 62500) << frequency_map[i].spd; in tda827xa_set_params()
555 buf[5] = (frequency_map[i].spd << 5) + (frequency_map[i].svco << 3) + in tda827xa_set_params()
676 N = N << tda827xa_analog[i].spd; in tda827xa_set_analog_params()
[all …]
/linux/drivers/iio/common/ssp_sensors/
A Dssp_iio.c22 struct ssp_sensor_data *spd = iio_priv(indio_dev); in ssp_common_buffer_postenable() local
28 spd->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL | GFP_DMA); in ssp_common_buffer_postenable()
29 if (!spd->buffer) in ssp_common_buffer_postenable()
32 return ssp_enable_sensor(data, spd->type, in ssp_common_buffer_postenable()
33 ssp_get_sensor_delay(data, spd->type)); in ssp_common_buffer_postenable()
47 struct ssp_sensor_data *spd = iio_priv(indio_dev); in ssp_common_buffer_postdisable() local
50 ret = ssp_disable_sensor(data, spd->type); in ssp_common_buffer_postdisable()
54 kfree(spd->buffer); in ssp_common_buffer_postdisable()
75 struct ssp_sensor_data *spd = iio_priv(indio_dev); in ssp_common_process_data() local
83 memcpy(spd->buffer, buf, len); in ssp_common_process_data()
[all …]
A Dssp_spi.c270 struct ssp_sensor_data *spd; in ssp_parse_dataframe() local
286 spd = iio_priv(indio_devs[sd]); in ssp_parse_dataframe()
287 if (spd->process_data) { in ssp_parse_dataframe()
290 spd->process_data(indio_devs[sd], in ssp_parse_dataframe()
/linux/drivers/iio/accel/
A Dssp_accel_sensor.c98 struct ssp_sensor_data *spd; in ssp_accel_probe() local
100 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*spd)); in ssp_accel_probe()
104 spd = iio_priv(indio_dev); in ssp_accel_probe()
106 spd->process_data = ssp_process_accel_data; in ssp_accel_probe()
107 spd->type = SSP_ACCELEROMETER_SENSOR; in ssp_accel_probe()
/linux/drivers/iio/gyro/
A Dssp_gyro_sensor.c98 struct ssp_sensor_data *spd; in ssp_gyro_probe() local
100 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*spd)); in ssp_gyro_probe()
104 spd = iio_priv(indio_dev); in ssp_gyro_probe()
106 spd->process_data = ssp_process_gyro_data; in ssp_gyro_probe()
107 spd->type = SSP_GYROSCOPE_SENSOR; in ssp_gyro_probe()
/linux/net/smc/
A Dsmc_rx.c139 static void smc_rx_spd_release(struct splice_pipe_desc *spd, in smc_rx_spd_release() argument
142 put_page(spd->pages[i]); in smc_rx_spd_release()
148 struct splice_pipe_desc spd; in smc_rx_splice() local
162 spd.nr_pages_max = 1; in smc_rx_splice()
163 spd.nr_pages = 1; in smc_rx_splice()
164 spd.pages = &smc->conn.rmb_desc->pages; in smc_rx_splice()
165 spd.partial = &partial; in smc_rx_splice()
166 spd.ops = &smc_pipe_ops; in smc_rx_splice()
167 spd.spd_release = smc_rx_spd_release; in smc_rx_splice()
169 bytes = splice_to_pipe(pipe, &spd); in smc_rx_splice()
/linux/drivers/net/ethernet/stmicro/stmmac/
A Ddwmac-sti.c160 static void stih4xx_fix_retime_src(void *priv, u32 spd) in stih4xx_fix_retime_src() argument
178 if (spd == SPEED_1000) { in stih4xx_fix_retime_src()
183 if (spd == SPEED_100) in stih4xx_fix_retime_src()
185 else if (spd == SPEED_10) in stih4xx_fix_retime_src()
197 static void stid127_fix_retime_src(void *priv, u32 spd) in stid127_fix_retime_src() argument
213 if (spd == SPEED_1000) in stid127_fix_retime_src()
215 else if (spd == SPEED_100) in stid127_fix_retime_src()
217 else if (spd == SPEED_10) in stid127_fix_retime_src()
/linux/fs/jffs2/
A Dsummary.c435 struct jffs2_sum_dirent_flash *spd; in jffs2_sum_process_sum_data() local
437 spd = sp; in jffs2_sum_process_sum_data()
441 jeb->offset + je32_to_cpu(spd->offset) + je32_to_cpu(spd->totlen)); in jffs2_sum_process_sum_data()
445 checkedlen = strnlen(spd->name, spd->nsize); in jffs2_sum_process_sum_data()
449 je32_to_cpu(spd->offset)); in jffs2_sum_process_sum_data()
452 if (checkedlen < spd->nsize) { in jffs2_sum_process_sum_data()
455 je32_to_cpu(spd->offset), in jffs2_sum_process_sum_data()
464 memcpy(&fd->name, spd->name, checkedlen); in jffs2_sum_process_sum_data()
477 fd->version = je32_to_cpu(spd->version); in jffs2_sum_process_sum_data()
478 fd->ino = je32_to_cpu(spd->ino); in jffs2_sum_process_sum_data()
[all …]
/linux/fs/
A Dsplice.c183 struct splice_pipe_desc *spd) in splice_to_pipe() argument
203 buf->page = spd->pages[page_nr]; in splice_to_pipe()
207 buf->ops = spd->ops; in splice_to_pipe()
215 if (!--spd->nr_pages) in splice_to_pipe()
224 spd->spd_release(spd, page_nr++); in splice_to_pipe()
260 spd->nr_pages_max = max_usage; in splice_grow_spd()
268 if (spd->pages && spd->partial) in splice_grow_spd()
271 kfree(spd->pages); in splice_grow_spd()
272 kfree(spd->partial); in splice_grow_spd()
281 kfree(spd->pages); in splice_shrink_spd()
[all …]
/linux/kernel/
A Drelay.c1128 struct splice_pipe_desc spd = { in subbuf_splice_actor() local
1140 if (splice_grow_spd(pipe, &spd)) in subbuf_splice_actor()
1154 for (total_len = 0; spd.nr_pages < nr_pages; spd.nr_pages++) { in subbuf_splice_actor()
1164 spd.pages[spd.nr_pages] = rbuf->page_array[pidx]; in subbuf_splice_actor()
1165 spd.partial[spd.nr_pages].offset = poff; in subbuf_splice_actor()
1172 spd.partial[spd.nr_pages].len = this_len; in subbuf_splice_actor()
1173 spd.partial[spd.nr_pages].private = private; in subbuf_splice_actor()
1181 spd.nr_pages++; in subbuf_splice_actor()
1187 if (!spd.nr_pages) in subbuf_splice_actor()
1190 ret = *nonpad_ret = splice_to_pipe(pipe, &spd); in subbuf_splice_actor()
[all …]
/linux/tools/testing/selftests/powerpc/ptrace/
A D.gitignore4 ptrace-tm-spd-gpr
7 ptrace-tm-spd-tar
10 ptrace-tm-spd-vsx
A DMakefile2 TEST_GEN_PROGS := ptrace-gpr ptrace-tm-gpr ptrace-tm-spd-gpr \
3 ptrace-tar ptrace-tm-tar ptrace-tm-spd-tar ptrace-vsx ptrace-tm-vsx \
4 ptrace-tm-spd-vsx ptrace-tm-spr ptrace-hwbreak ptrace-pkey core-pkey \
/linux/arch/arm/mach-s3c/
A Dsimtec-audio.c55 struct s3c24xx_audio_simtec_pdata *spd) in simtec_audio_add() argument
63 if (spd) in simtec_audio_add()
64 simtec_audio_platdata = *spd; in simtec_audio_add()
/linux/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_calendar.c166 enum sparx5_cal_bw spd; in sparx5_config_auto_calendar() local
180 spd = sparx5_get_port_cal_speed(sparx5, portno); in sparx5_config_auto_calendar()
181 if (spd == SPX5_CAL_SPEED_NONE) in sparx5_config_auto_calendar()
184 this_bw = sparx5_cal_speed_to_value(spd); in sparx5_config_auto_calendar()
193 cal[reg] |= spd << (offset * SPX5_CALBITS_PER_PORT); in sparx5_config_auto_calendar()
360 u32 spd = data->taxi_speeds[idx]; in sparx5_dsm_calendar_calc() local
369 data->dev_slots[idx] = ((spd * factor / slot_spd) + 999) / 1000; in sparx5_dsm_calendar_calc()
370 if (spd != 25000 && (spd != 10000 || !slow_mode)) { in sparx5_dsm_calendar_calc()
374 taxi, spd); in sparx5_dsm_calendar_calc()
A Dsparx5_port.c322 u32 spd = port->conf.speed; in sparx5_port_disable() local
368 spd_prm = spd == SPEED_10 ? 1000 : spd == SPEED_100 ? 100 : 10; in sparx5_port_disable()
872 int spd = conf->speed; in sparx5_port_config_low_set() local
874 clk_spd = spd == SPEED_10 ? 0 : spd == SPEED_100 ? 1 : 2; in sparx5_port_config_low_set()
875 gig_mode = spd == SPEED_1000 || spd == SPEED_2500; in sparx5_port_config_low_set()
876 tx_gap = spd == SPEED_1000 ? 4 : fdx ? 6 : 5; in sparx5_port_config_low_set()
877 hdx_gap_1 = spd == SPEED_1000 ? 0 : spd == SPEED_100 ? 1 : 2; in sparx5_port_config_low_set()
878 hdx_gap_2 = spd == SPEED_1000 ? 0 : spd == SPEED_100 ? 4 : 1; in sparx5_port_config_low_set()
/linux/include/dt-bindings/usb/
A Dpd.h208 #define VDO_UFP(ver, cap, conn, vcpwr, vcr, vbr, alt, spd) \ argument
211 | ((spd) & 0x7))
346 #define VDO_PCABLE(hw, fw, ver, conn, lat, term, vbm, cur, spd) \ argument
349 | ((vbm) & 0x3) << 9 | ((cur) & 0x3) << 5 | ((spd) & 0x7))
350 #define VDO_ACABLE1(hw, fw, ver, conn, lat, term, vbm, sbu, sbut, cur, vbt, sopp, spd) \ argument
354 | (vbt) << 4 | (sopp) << 3 | ((spd) & 0x7))
/linux/include/linux/usb/
A Dpd_vdo.h229 #define VDO_UFP(ver, cap, conn, vcpwr, vcr, vbr, alt, spd) \ argument
232 | ((spd) & 0x7))
369 #define VDO_PCABLE(hw, fw, ver, conn, lat, term, vbm, cur, spd) \ argument
372 | ((vbm) & 0x3) << 9 | ((cur) & 0x3) << 5 | ((spd) & 0x7))
373 #define VDO_ACABLE1(hw, fw, ver, conn, lat, term, vbm, sbu, sbut, cur, vbt, sopp, spd) \ argument
377 | (vbt) << 4 | (sopp) << 3 | ((spd) & 0x7))
/linux/arch/powerpc/kernel/
A Dlegacy_serial.c80 const __be32 *clk, *spd, *rs; in add_legacy_port() local
91 spd = of_get_property(np, "current-speed", NULL); in add_legacy_port()
145 legacy_serial_infos[index].speed = spd ? be32_to_cpup(spd) : 0; in add_legacy_port()
608 const __be32 *spd; in check_legacy_serial_console() local
648 spd = of_get_property(prom_stdout, "current-speed", NULL); in check_legacy_serial_console()
649 if (spd) in check_legacy_serial_console()
650 speed = be32_to_cpup(spd); in check_legacy_serial_console()
/linux/sound/firewire/
A Dcmp.c252 unsigned int spd, xspd; in opcr_set_modify() local
256 spd = SCODE_800; in opcr_set_modify()
259 spd = c->speed; in opcr_set_modify()
272 opcr |= cpu_to_be32(spd << OPCR_SPEED_SHIFT); in opcr_set_modify()
/linux/Documentation/devicetree/bindings/eeprom/
A Dat24.yaml17 pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
36 … - pattern: "^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[0-9]+|spd)$"
37 - pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
94 pattern: spd$
/linux/sound/firewire/fireface/
A Dff-stream.c186 int spd = fw_parent_device(ff->unit)->max_speed; in snd_ff_stream_start_duplex() local
193 ff->rx_resources.channel, spd); in snd_ff_stream_start_duplex()
198 ff->tx_resources.channel, spd); in snd_ff_stream_start_duplex()
/linux/drivers/tty/serial/8250/
A D8250_of.c38 u32 clk, spd, prop; in of_platform_serial_setup() local
65 if (of_property_read_u32(np, "current-speed", &spd) == 0) in of_platform_serial_setup()
66 port->custom_divisor = clk / (16 * spd); in of_platform_serial_setup()
/linux/drivers/net/ethernet/atheros/atl1c/
A Datl1c_hw.c649 u32 spd; in atl1c_get_link_status() local
651 AT_READ_REG(hw, REG_MT_SPEED, &spd); in atl1c_get_link_status()
652 return !!spd; in atl1c_get_link_status()
674 u32 spd; in atl1c_get_speed_and_duplex() local
676 AT_READ_REG(hw, REG_MT_SPEED, &spd); in atl1c_get_speed_and_duplex()
677 *speed = spd; in atl1c_get_speed_and_duplex()
/linux/arch/arm64/boot/dts/freescale/
A Dfsl-lx2160a-cex7.dtsi74 compatible = "atmel,spd";
79 compatible = "atmel,spd";
/linux/sound/firewire/digi00x/
A Ddigi00x-stream.c362 int spd = fw_parent_device(dg00x->unit)->max_speed; in snd_dg00x_stream_start_duplex() local
369 dg00x->rx_resources.channel, spd); in snd_dg00x_stream_start_duplex()
374 dg00x->tx_resources.channel, spd); in snd_dg00x_stream_start_duplex()

Completed in 56 milliseconds

123