Home
last modified time | relevance | path

Searched refs:sdr (Results 1 – 25 of 151) sorted by relevance

1234567

/openbmc/linux/drivers/media/platform/renesas/
H A Drcar_drif.c341 sdr->fmt->bitlen, sdr->fmt->wdcnt, sdr->fmt->num_ch); in rcar_drif_set_format()
521 struct rcar_drif_sdr *sdr = ch->sdr; in rcar_drif_dma_complete() local
595 struct rcar_drif_sdr *sdr = ch->sdr; in rcar_drif_qbuf() local
889 sdr->num_cur_ch = sdr->num_hw_ch; in rcar_drif_set_default_format()
952 sdr->num_cur_ch = sdr->num_hw_ch; in rcar_drif_s_fmt_sdr_cap()
1072 sdr->vdev->lock = &sdr->v4l2_mutex; in rcar_drif_sdr_register()
1073 sdr->vdev->queue = &sdr->vb_queue; in rcar_drif_sdr_register()
1079 video_set_drvdata(sdr->vdev, sdr); in rcar_drif_sdr_register()
1273 ch->sdr = sdr; in rcar_drif_bond_available()
1314 sdr->vb_queue.drv_priv = sdr; in rcar_drif_sdr_probe()
[all …]
/openbmc/ipmitool/lib/
H A Dipmi_sensor.c530 struct sdr_record_list *sdr; in ipmi_sensor_set_threshold() local
615 if (sdr == NULL) { in ipmi_sensor_set_threshold()
718 sdr->record.common->keys.lun,sdr->record.common->keys.channel); in ipmi_sensor_set_threshold()
810 struct sdr_record_list *sdr; in ipmi_sensor_get_reading() local
821 if (sdr == NULL) { in ipmi_sensor_get_reading()
828 switch (sdr->type) { in ipmi_sensor_get_reading()
871 struct sdr_record_list *sdr; in ipmi_sensor_get() local
885 if (sdr == NULL) { in ipmi_sensor_get()
894 switch (sdr->type) { in ipmi_sensor_get()
899 sdr->type)) { in ipmi_sensor_get()
[all …]
H A Dipmi_gendev.c577 struct sdr_record_list *sdr; in ipmi_gendev_main() local
584 sdr = ipmi_sdr_find_sdr_byid(intf, argv[1]); in ipmi_gendev_main()
585 if (sdr == NULL) in ipmi_gendev_main()
591 if (sdr->type != SDR_RECORD_TYPE_GENERIC_DEVICE_LOCATOR) in ipmi_gendev_main()
598 ipmi_gendev_read_file(intf, sdr->record.genloc, argv[2]); in ipmi_gendev_main()
608 struct sdr_record_list *sdr; in ipmi_gendev_main() local
615 sdr = ipmi_sdr_find_sdr_byid(intf, argv[1]); in ipmi_gendev_main()
616 if (sdr == NULL) in ipmi_gendev_main()
622 if (sdr->type != SDR_RECORD_TYPE_GENERIC_DEVICE_LOCATOR) in ipmi_gendev_main()
629 ipmi_gendev_write_file(intf, sdr->record.genloc, argv[2]); in ipmi_gendev_main()
H A Dipmi_event.c241 struct sdr_record_list * sdr; in ipmi_event_fromsensor() local
266 sdr = ipmi_sdr_find_sdr_byid(intf, id); in ipmi_event_fromsensor()
267 if (sdr == NULL) { in ipmi_event_fromsensor()
273 switch (sdr->type) in ipmi_event_fromsensor()
278 emsg.sensor_type = sdr->record.common->sensor.type; in ipmi_event_fromsensor()
279 emsg.sensor_num = sdr->record.common->keys.sensor_num; in ipmi_event_fromsensor()
280 emsg.event_type = sdr->record.common->event_type; in ipmi_event_fromsensor()
281 target = sdr->record.common->keys.owner_id; in ipmi_event_fromsensor()
282 lun = sdr->record.common->keys.lun; in ipmi_event_fromsensor()
283 channel = sdr->record.common->keys.channel; in ipmi_event_fromsensor()
H A Dipmi_sel.c1713 struct sdr_record_list * sdr = NULL; in ipmi_sel_print_std_entry() local
1810 if (sdr != NULL) { in ipmi_sel_print_std_entry()
1820 switch (sdr->type) { in ipmi_sel_print_std_entry()
1914 sdr->record.common->unit.modifier, in ipmi_sel_print_std_entry()
2046 struct sdr_record_list * sdr; in ipmi_sel_print_extended_entry_verbose() local
2052 sdr = ipmi_sdr_find_sdr_bynumtype(intf, in ipmi_sel_print_extended_entry_verbose()
2056 if (sdr == NULL) in ipmi_sel_print_extended_entry_verbose()
2884 struct sdr_record_list *sdr; in ipmi_sel_show_entry() local
2932 if (sdr == NULL) { in ipmi_sel_show_entry()
2939 switch (sdr->type) { in ipmi_sel_show_entry()
[all …]
H A Dipmi_sunoem.c452 struct sdr_record_list *sdr; in ipmi_sunoem_led_get() local
512 sdr = ipmi_sdr_find_sdr_byid(intf, argv[0]); in ipmi_sunoem_led_get()
514 if (sdr == NULL) { in ipmi_sunoem_led_get()
520 lprintf(LOG_ERR, "Invalid SDR type %d", sdr->type); in ipmi_sunoem_led_get()
524 if (!sdr->record.genloc->entity.logical) { in ipmi_sunoem_led_get()
572 != sdr->record.genloc->entity.instance) in ipmi_sunoem_led_get()
650 struct sdr_record_list *sdr; in ipmi_sunoem_led_set() local
711 sdr = ipmi_sdr_find_sdr_byid(intf, argv[0]); in ipmi_sunoem_led_set()
713 if (sdr == NULL) { in ipmi_sunoem_led_set()
723 if (!sdr->record.genloc->entity.logical) { in ipmi_sunoem_led_set()
[all …]
/openbmc/linux/Documentation/userspace-api/media/v4l/
H A Dsdr-formats.rst9 These formats are used for :ref:`SDR <sdr>` interface only.
15 pixfmt-sdr-cu08
16 pixfmt-sdr-cu16le
17 pixfmt-sdr-cs08
18 pixfmt-sdr-cs14le
19 pixfmt-sdr-ru12le
20 pixfmt-sdr-pcu16be
21 pixfmt-sdr-pcu18be
22 pixfmt-sdr-pcu20be
/openbmc/linux/drivers/mtd/nand/raw/
H A Dnand_toshiba.c223 struct nand_sdr_timings *sdr = &iface->timings.sdr; in th58nvg2s3hbai4_choose_interface_config() local
229 sdr->tALS_min = 12000; in th58nvg2s3hbai4_choose_interface_config()
230 sdr->tCHZ_max = 20000; in th58nvg2s3hbai4_choose_interface_config()
231 sdr->tCLS_min = 12000; in th58nvg2s3hbai4_choose_interface_config()
232 sdr->tCOH_min = 0; in th58nvg2s3hbai4_choose_interface_config()
233 sdr->tDS_min = 12000; in th58nvg2s3hbai4_choose_interface_config()
234 sdr->tRHOH_min = 25000; in th58nvg2s3hbai4_choose_interface_config()
235 sdr->tRHW_min = 30000; in th58nvg2s3hbai4_choose_interface_config()
236 sdr->tRHZ_max = 60000; in th58nvg2s3hbai4_choose_interface_config()
237 sdr->tWHR_min = 60000; in th58nvg2s3hbai4_choose_interface_config()
[all …]
H A Drenesas-nand-controller.c898 sdr = nand_get_sdr_timings(conf); in rnandc_setup_interface()
899 if (IS_ERR(sdr)) in rnandc_setup_interface()
900 return PTR_ERR(sdr); in rnandc_setup_interface()
902 if (sdr->tRP_min != sdr->tWP_min || sdr->tREH_min != sdr->tWH_min) { in rnandc_setup_interface()
923 cyc = sdr->tDS_min + sdr->tDH_min; in rnandc_setup_interface()
924 cle = sdr->tCLH_min + sdr->tCLS_min; in rnandc_setup_interface()
925 ale = sdr->tALH_min + sdr->tALS_min; in rnandc_setup_interface()
926 bef_dly = sdr->tWB_max - sdr->tDH_min; in rnandc_setup_interface()
927 ca_to_data = sdr->tWHR_min + sdr->tREA_max - sdr->tDH_min; in rnandc_setup_interface()
960 TIM_GEN_SEQ2_D8(TO_CYCLES64(sdr->tRR_min + sdr->tREA_max, period_ns)) | in rnandc_setup_interface()
[all …]
H A Dcadence-nand-controller.c2374 sdr = nand_get_sdr_timings(conf); in cadence_nand_setup_interface()
2375 if (IS_ERR(sdr)) in cadence_nand_setup_interface()
2376 return PTR_ERR(sdr); in cadence_nand_setup_interface()
2398 if (sdr->tRC_min <= clk_period && in cadence_nand_setup_interface()
2404 sdr->tREA_max, ext_rd_mode); in cadence_nand_setup_interface()
2440 if (sdr->tREH_min >= trh) in cadence_nand_setup_interface()
2446 sdr->tREA_max, ext_rd_mode); in cadence_nand_setup_interface()
2454 sdr->tRHOH_min, in cadence_nand_setup_interface()
2484 sdr->tRHOH_min, in cadence_nand_setup_interface()
2501 if (sdr->tWH_min >= twh) in cadence_nand_setup_interface()
[all …]
H A Dnand_timings.c27 .timings.sdr = {
72 .timings.sdr = {
117 .timings.sdr = {
162 .timings.sdr = {
207 .timings.sdr = {
252 .timings.sdr = {
568 onfi_timings = &onfi_sdr_timings[mode].timings.sdr; in onfi_find_closest_sdr_mode()
669 struct nand_sdr_timings *timings = &iface->timings.sdr; in onfi_fill_sdr_interface_config()
H A Dpl35x-nand-controller.c595 const struct nand_sdr_timings *sdr = in pl35x_nand_read_page_hwecc() local
631 ndelay(PSEC_TO_NSEC(sdr->tRR_min)); in pl35x_nand_read_page_hwecc()
790 const struct nand_sdr_timings *sdr; in pl35x_nfc_setup_interface() local
794 sdr = nand_get_sdr_timings(conf); in pl35x_nfc_setup_interface()
795 if (IS_ERR(sdr)) in pl35x_nfc_setup_interface()
796 return PTR_ERR(sdr); in pl35x_nfc_setup_interface()
815 val = TO_CYCLES(sdr->tRC_min, period_ns); in pl35x_nfc_setup_interface()
816 if (sdr->tRC_min <= 20000) in pl35x_nfc_setup_interface()
823 val = TO_CYCLES(sdr->tWC_min, period_ns); in pl35x_nfc_setup_interface()
834 val = TO_CYCLES(sdr->tWP_min, period_ns); in pl35x_nfc_setup_interface()
[all …]
/openbmc/dbus-sensors/src/ipmb/
H A DIpmbSDRSensor.cpp86 sdr::netfnStorageReq, lun, sdr::cmdStorageGetSdrInfo, sdrCommandData); in getSDRRepositoryInfo()
125 sdr::netfnStorageReq, lun, sdr::cmdStorageReserveSdr, sdrCommandData); in reserveSDRRepository()
135 uint8_t loopCount = sdr::perCountByte * iCnt; in getSDRSensorData()
168 sdr::netfnStorageReq, lun, sdr::cmdStorageGetSdr, commandData); in getSDRSensorData()
179 uint8_t dataLength = sdrData[sdr::dataLengthByte] + sdr::dataLengthByte + 1; in handleSDRData()
199 nextRecordIDLSB = sdrData[sdr::sdrNxtRecLSB]; in handleSDRData()
200 nextRecordIDMSB = sdrData[sdr::sdrNxtRecMSB]; in handleSDRData()
227 uint8_t sdrType = sdrDataBytes[sdr::sdrType]; in checkSDRData()
234 int dataLen = sdrDataBytes[sdr::dataLengthByte]; in checkSDRData()
241 int strAddr = dataLen + ((dataLen / (sdr::perCountByte)) * 4) - in checkSDRData()
[all …]
/openbmc/qemu/hw/ipmi/
H A Dipmi_bmc_sim.c213 IPMISdr sdr; member
329 (struct ipmi_sdr_header *) &ibs->sdr.sdr[ibs->sdr.next_free]; in sdr_add_entry()
366 (struct ipmi_sdr_header *) &sdr->sdr[pos]; in sdr_find_entry()
375 *nextrec = (sdr->sdr[nextpos] | in sdr_find_entry()
376 (sdr->sdr[nextpos + 1] << 8)); in sdr_find_entry()
399 *sdr = (const struct ipmi_sdr_compact *) &ibs->sdr.sdr[pos]; in ipmi_bmc_sdr_find()
565 (struct ipmi_sdr_compact *) &s->sdr.sdr[pos]; in ipmi_init_sensors_from_sdrs()
585 sdr->deassert_mask[0] | (sdr->deassert_mask[1] << 8); in ipmi_init_sensors_from_sdrs()
587 sdr->discrete_mask[0] | (sdr->discrete_mask[1] << 8); in ipmi_init_sensors_from_sdrs()
1273 sdrh = (struct ipmi_sdr_header *) &ibs->sdr.sdr[pos]; in get_sdr()
[all …]
/openbmc/qemu/hw/ppc/
H A Dpnv_bmc.c83 const struct ipmi_sdr_compact *sdr; in pnv_dt_bmc_sensors() local
100 for (i = 0; !ipmi_bmc_sdr_find(bmc, i, &sdr, &nextrec); i++) { in pnv_dt_bmc_sensors()
104 if (sdr->header.rec_type != IPMI_SDR_COMPACT_TYPE && in pnv_dt_bmc_sensors()
105 sdr->header.rec_type != IPMI_SDR_FULL_TYPE) { in pnv_dt_bmc_sensors()
109 name = g_strdup_printf("sensor@%x", sdr->sensor_owner_number); in pnv_dt_bmc_sensors()
114 _FDT((fdt_setprop_cell(fdt, off, "reg", sdr->sensor_owner_number))); in pnv_dt_bmc_sensors()
118 sdr->reading_type))); in pnv_dt_bmc_sensors()
120 sdr->entity_id))); in pnv_dt_bmc_sensors()
122 sdr->entity_instance))); in pnv_dt_bmc_sensors()
124 sdr->sensor_type))); in pnv_dt_bmc_sensors()
H A Dppc440_uc.c338 ppc4xx_sdr_t *sdr = opaque; in dcr_read_sdr() local
343 ret = sdr->addr; in dcr_read_sdr()
346 switch (sdr->addr) { in dcr_read_sdr()
388 ppc4xx_sdr_t *sdr = opaque; in dcr_write_sdr() local
392 sdr->addr = val; in dcr_write_sdr()
395 switch (sdr->addr) { in dcr_write_sdr()
409 ppc4xx_sdr_t *sdr = opaque; in sdr_reset() local
411 sdr->addr = 0; in sdr_reset()
416 ppc4xx_sdr_t *sdr; in ppc4xx_sdr_init() local
418 sdr = g_malloc0(sizeof(*sdr)); in ppc4xx_sdr_init()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/arm/altera/
H A Dsocfpga-sdram-controller.txt4 - compatible : Should contain "altr,sdr-ctl" and "syscon".
9 sdr: sdr@ffc25000 {
10 compatible = "altr,sdr-ctl", "syscon";
H A Dsocfpga-sdram-edac.txt6 - altr,sdr-syscon : phandle of the sdr module
13 altr,sdr-syscon = <&sdr>;
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_timings.c19 .timings.sdr = {
61 .timings.sdr = {
103 .timings.sdr = {
145 .timings.sdr = {
187 .timings.sdr = {
229 .timings.sdr = {
280 return &onfi_sdr_timings[mode].timings.sdr; in onfi_async_timing_mode_to_sdr_timings()
310 struct nand_sdr_timings *timings = &iface->timings.sdr; in onfi_init_data_interface()
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dmeson.build22 sensorsoem_src = ['dbus-sdr/sensorcommands_oem.cpp']
36 'dbus-sdr/sdrutils.cpp',
37 'dbus-sdr/sensorcommands.cpp',
38 'dbus-sdr/storagecommands.cpp',
/openbmc/qemu/include/hw/ipmi/
H A Dipmi.h225 #define ipmi_sdr_recid(sdr) ((sdr)->rec_id[0] | ((sdr)->rec_id[1] << 8)) argument
226 #define ipmi_sdr_length(sdr) ((sdr)->rec_length + IPMI_SDR_HEADER_SIZE) argument
263 const struct ipmi_sdr_compact **sdr, uint16_t *nextrec);
/openbmc/ipmitool/src/
H A Dipmievd.c222 struct sdr_record_list * sdr; in log_event() local
249 if (sdr == NULL) { in log_event()
264 switch (sdr->type) { in log_event()
286 sdr->record.full->id_string, in log_event()
295 ipmi_sdr_get_unit_string(sdr->record.common->unit.pct, in log_event()
296 sdr->record.common->unit.modifier, in log_event()
297 sdr->record.common->unit.type.base, in log_event()
298 sdr->record.common->unit.type.modifier)); in log_event()
307 sdr->record.full->id_string, desc ? desc : "", in log_event()
320 sdr->record.full->id_string, desc ? desc : "", in log_event()
[all …]
/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-sdr-cap.c461 f->fmt.sdr.pixelformat = dev->sdr_pixelformat; in vidioc_g_fmt_sdr_cap()
462 f->fmt.sdr.buffersize = dev->sdr_buffersize; in vidioc_g_fmt_sdr_cap()
476 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in vidioc_s_fmt_sdr_cap()
479 f->fmt.sdr.buffersize = formats[i].buffersize; in vidioc_s_fmt_sdr_cap()
485 f->fmt.sdr.pixelformat = formats[0].pixelformat; in vidioc_s_fmt_sdr_cap()
486 f->fmt.sdr.buffersize = formats[0].buffersize; in vidioc_s_fmt_sdr_cap()
495 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in vidioc_try_fmt_sdr_cap()
496 f->fmt.sdr.buffersize = formats[i].buffersize; in vidioc_try_fmt_sdr_cap()
500 f->fmt.sdr.pixelformat = formats[0].pixelformat; in vidioc_try_fmt_sdr_cap()
501 f->fmt.sdr.buffersize = formats[0].buffersize; in vidioc_try_fmt_sdr_cap()
/openbmc/linux/drivers/mtd/nand/raw/atmel/
H A Dnand-controller.c1257 if (conf->timings.sdr.tRC_min < 30000) in atmel_smc_nand_prepare_smcconf()
1288 timeps = max3(conf->timings.sdr.tCLS_min, conf->timings.sdr.tCS_min, in atmel_smc_nand_prepare_smcconf()
1289 conf->timings.sdr.tALS_min); in atmel_smc_nand_prepare_smcconf()
1305 timeps = max3(conf->timings.sdr.tCLH_min, conf->timings.sdr.tCH_min, in atmel_smc_nand_prepare_smcconf()
1306 conf->timings.sdr.tALH_min); in atmel_smc_nand_prepare_smcconf()
1308 conf->timings.sdr.tWH_min); in atmel_smc_nand_prepare_smcconf()
1344 timeps = max(conf->timings.sdr.tREH_min, conf->timings.sdr.tRHOH_min); in atmel_smc_nand_prepare_smcconf()
1528 const struct nand_sdr_timings *sdr; in atmel_nand_setup_interface() local
1531 sdr = nand_get_sdr_timings(conf); in atmel_nand_setup_interface()
1532 if (IS_ERR(sdr)) in atmel_nand_setup_interface()
[all …]
/openbmc/linux/arch/powerpc/boot/
H A D4xx.c484 unsigned int sdr; in eplike_fixup_uart_clk() local
489 sdr = SDR0_READ(DCRN_SDR0_UART0); in eplike_fixup_uart_clk()
492 sdr = SDR0_READ(DCRN_SDR0_UART1); in eplike_fixup_uart_clk()
495 sdr = SDR0_READ(DCRN_SDR0_UART2); in eplike_fixup_uart_clk()
498 sdr = SDR0_READ(DCRN_SDR0_UART3); in eplike_fixup_uart_clk()
504 if (sdr & 0x00800000u) in eplike_fixup_uart_clk()
507 clock = plb_clk / __fix_zero(sdr & 0xff, 256); in eplike_fixup_uart_clk()

1234567