Home
last modified time | relevance | path

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

1234567

/openbmc/linux/drivers/media/platform/renesas/
H A Drcar_drif.c127 #define to_rcar_drif_buf_pair(sdr, ch_num, idx) \ argument
128 (&((sdr)->ch[!(ch_num)]->buf[(idx)]))
134 #define rdrif_dbg(sdr, fmt, arg...) \ argument
135 dev_dbg(sdr->v4l2_dev.dev, fmt, ## arg)
137 #define rdrif_err(sdr, fmt, arg...) \ argument
138 dev_err(sdr->v4l2_dev.dev, fmt, ## arg)
194 struct rcar_drif_sdr *sdr; /* Group device */ member
252 static void rcar_drif_release_dmachannels(struct rcar_drif_sdr *sdr) in rcar_drif_release_dmachannels() argument
256 for_each_rcar_drif_channel(i, &sdr->cur_ch_mask) in rcar_drif_release_dmachannels()
257 if (sdr->ch[i]->dmach) { in rcar_drif_release_dmachannels()
[all …]
/openbmc/ipmitool/lib/
H A Dipmi_sensor.c530 struct sdr_record_list *sdr; in ipmi_sensor_set_threshold() local
614 sdr = ipmi_sdr_find_sdr_byid(intf, id); in ipmi_sensor_set_threshold()
615 if (sdr == NULL) { in ipmi_sensor_set_threshold()
620 if (sdr->type != SDR_RECORD_TYPE_FULL_SENSOR) { in ipmi_sensor_set_threshold()
621 lprintf(LOG_ERR, "Invalid sensor type %02x", sdr->type); in ipmi_sensor_set_threshold()
625 if (!IS_THRESHOLD_SENSOR(sdr->record.common)) { in ipmi_sensor_set_threshold()
626 lprintf(LOG_ERR, "Invalid sensor event type %02x", sdr->record.common->event_type); in ipmi_sensor_set_threshold()
634 sdr->record.full->id_string, in ipmi_sensor_set_threshold()
637 sdr->record.common->keys. in ipmi_sensor_set_threshold()
639 __ipmi_sensor_threshold_value_to_raw(sdr->record.full, setting1), in ipmi_sensor_set_threshold()
[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
1717sdr = ipmi_sdr_find_sdr_bynumtype(intf, evt->sel_type.standard_type.gen_id, evt->sel_type.standard… in ipmi_sel_print_std_entry()
1810 if (sdr != NULL) { in ipmi_sel_print_std_entry()
1820 switch (sdr->type) { in ipmi_sel_print_std_entry()
1822 printf("%s", sdr->record.full->id_string); in ipmi_sel_print_std_entry()
1825 printf("%s", sdr->record.compact->id_string); in ipmi_sel_print_std_entry()
1828 printf("%s", sdr->record.eventonly->id_string); in ipmi_sel_print_std_entry()
1831 printf("%s", sdr->record.fruloc->id_string); in ipmi_sel_print_std_entry()
1834 printf("%s", sdr->record.mcloc->id_string); in ipmi_sel_print_std_entry()
1837 printf("%s", sdr->record.genloc->id_string); in ipmi_sel_print_std_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()
519 if (sdr->type != SDR_RECORD_TYPE_GENERIC_DEVICE_LOCATOR) { 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()
529 res = sunoem_led_get(intf, sdr->record.genloc, ledtype, &rsp); in ipmi_sunoem_led_get()
532 led_print((const char *) sdr->record.genloc->id_string, in ipmi_sunoem_led_get()
536 led_print((const char *) sdr->record.genloc->id_string, PRINT_ERROR, in ipmi_sunoem_led_get()
570 if (assoc->entity.id != sdr->record.genloc->entity.id in ipmi_sunoem_led_get()
[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.c35 const struct nand_sdr_timings *sdr = in toshiba_nand_benand_read_eccstatus_op() local
39 PSEC_TO_NSEC(sdr->tADL_min)), in toshiba_nand_benand_read_eccstatus_op()
223 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()
[all …]
H A Drenesas-nand-controller.c895 const struct nand_sdr_timings *sdr; in rnandc_setup_interface() local
898 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()
911 TIMINGS_ASYN_TRWP(TO_CYCLES64(sdr->tRP_min, period_ns)) | in rnandc_setup_interface()
912 TIMINGS_ASYN_TRWH(TO_CYCLES64(sdr->tREH_min, period_ns)); in rnandc_setup_interface()
914 TIM_SEQ0_TCCS(TO_CYCLES64(sdr->tCCS_min, period_ns)) | in rnandc_setup_interface()
915 TIM_SEQ0_TADL(TO_CYCLES64(sdr->tADL_min, period_ns)) | in rnandc_setup_interface()
916 TIM_SEQ0_TRHW(TO_CYCLES64(sdr->tRHW_min, period_ns)) | in rnandc_setup_interface()
[all …]
H A Dcadence-nand-controller.c2353 const struct nand_sdr_timings *sdr; in cadence_nand_setup_interface() local
2374 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()
2388 tdvw_min = sdr->tREA_max + board_delay_skew_max; in cadence_nand_setup_interface()
2398 if (sdr->tRC_min <= clk_period && in cadence_nand_setup_interface()
2399 sdr->tRP_min <= (clk_period / 2) && in cadence_nand_setup_interface()
2400 sdr->tREH_min <= (clk_period / 2)) { in cadence_nand_setup_interface()
2403 tdvw = calc_tdvw(trp_cnt, clk_period, sdr->tRHOH_min, in cadence_nand_setup_interface()
2404 sdr->tREA_max, ext_rd_mode); 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()
138 loopCount, sdr::perCountByte}; 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()
[all …]
/openbmc/qemu/hw/ipmi/
H A Dipmi_bmc_sim.c125 uint8_t sdr[MAX_SDR_SIZE]; member
213 IPMISdr sdr; member
316 static void sdr_inc_reservation(IPMISdr *sdr) in sdr_inc_reservation() argument
318 sdr->reservation++; in sdr_inc_reservation()
319 if (sdr->reservation == 0) { in sdr_inc_reservation()
320 sdr->reservation = 1; in sdr_inc_reservation()
329 (struct ipmi_sdr_header *) &ibs->sdr.sdr[ibs->sdr.next_free]; in sdr_add_entry()
339 if (ibs->sdr.next_free + len > MAX_SDR_SIZE) { in sdr_add_entry()
340 ibs->sdr.overflow = 1; in sdr_add_entry()
345 sdrh->rec_id[0] = ibs->sdr.next_rec_id & 0xff; in sdr_add_entry()
[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/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/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/phosphor-host-ipmid/dbus-sdr/
H A Dmeson.build23 sensorsoem_src = ['dbus-sdr/sensorcommands_oem.cpp']
38 'dbus-sdr/sdrutils.cpp',
39 'dbus-sdr/sensorcommands.cpp',
40 '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
246sdr = ipmi_sdr_find_sdr_bynumtype(intf, evt->sel_type.standard_type.gen_id, evt->sel_type.standard… in log_event()
249 if (sdr == NULL) { in log_event()
264 switch (sdr->type) { in log_event()
274 sdr->record.full, evt->sel_type.standard_type.event_data[1]); in log_event()
280 sdr->record.full, evt->sel_type.standard_type.event_data[2]); 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()
[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()
1270 ncycles = DIV_ROUND_UP(conf->timings.sdr.tWP_min, mckperiodps); 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()
1290 timeps = max(timeps, conf->timings.sdr.tDS_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()
1307 timeps = max3(timeps, conf->timings.sdr.tDH_min, in atmel_smc_nand_prepare_smcconf()
1308 conf->timings.sdr.tWH_min); in atmel_smc_nand_prepare_smcconf()
1319 ncycles = DIV_ROUND_UP(conf->timings.sdr.tWC_min, mckperiodps); in atmel_smc_nand_prepare_smcconf()
[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