| /openbmc/u-boot/drivers/spi/ |
| H A D | sh_spi.c | 43 static void clear_fifo(struct sh_spi *ss) in clear_fifo() argument 45 sh_spi_set_bit(SH_SPI_RSTF, &ss->regs->cr2); in clear_fifo() 46 sh_spi_clear_bit(SH_SPI_RSTF, &ss->regs->cr2); in clear_fifo() 49 static int recvbuf_wait(struct sh_spi *ss) in recvbuf_wait() argument 51 while (sh_spi_read(&ss->regs->cr1) & SH_SPI_RBE) { in recvbuf_wait() 59 static int write_fifo_empty_wait(struct sh_spi *ss) in write_fifo_empty_wait() argument 61 while (!(sh_spi_read(&ss->regs->cr1) & SH_SPI_TBE)) { in write_fifo_empty_wait() 69 static void sh_spi_set_cs(struct sh_spi *ss, unsigned int cs) in sh_spi_set_cs() argument 78 sh_spi_clear_bit(SH_SPI_SSS0 | SH_SPI_SSS1, &ss->regs->cr4); in sh_spi_set_cs() 79 sh_spi_set_bit(val, &ss->regs->cr4); in sh_spi_set_cs() [all …]
|
| H A D | sh_qspi.c | 76 static void sh_qspi_init(struct sh_qspi_slave *ss) in sh_qspi_init() argument 80 writeb(SPCR_MSTR, &ss->regs->spcr); in sh_qspi_init() 83 writeb(0x00, &ss->regs->sslp); in sh_qspi_init() 86 writeb(SPPCR_IO3FV|SPPCR_IO2FV, &ss->regs->sppcr); in sh_qspi_init() 89 writeb(0x01, &ss->regs->spbr); in sh_qspi_init() 92 writeb(0x00, &ss->regs->spdcr); in sh_qspi_init() 95 writeb(0x00, &ss->regs->spckd); in sh_qspi_init() 98 writeb(0x00, &ss->regs->sslnd); in sh_qspi_init() 101 writeb(0x00, &ss->regs->spnd); in sh_qspi_init() 104 writew(SPCMD_INIT2, &ss->regs->spcmd0); in sh_qspi_init() [all …]
|
| H A D | soft_spi_legacy.c | 42 struct soft_spi_slave *ss; in spi_setup_slave() local 47 ss = spi_alloc_slave(struct soft_spi_slave, bus, cs); in spi_setup_slave() 48 if (!ss) in spi_setup_slave() 51 ss->mode = mode; in spi_setup_slave() 55 return &ss->slave; in spi_setup_slave() 60 struct soft_spi_slave *ss = to_soft_spi(slave); in spi_free_slave() local 62 free(ss); in spi_free_slave() 70 struct soft_spi_slave *ss = to_soft_spi(slave); in spi_claim_bus() local 76 if (ss->mode & SPI_CPOL) in spi_claim_bus() 107 struct soft_spi_slave *ss = to_soft_spi(slave); in spi_xfer() local [all …]
|
| /openbmc/openbmc/poky/meta/recipes-support/lzo/lzo/ |
| H A D | 0001-Use-memcpy-instead-of-reinventing-it.patch | 45 +#define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1) 46 +#define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2) 47 +#define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4) 48 +#define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8) 49 +#define LZO_MEMOPS_COPYN(dd,ss,nn) memcpy(dd, ss, nn) 51 __lzo_static_forceinline lzo_uint16_t lzo_memops_get_le16(const lzo_voidp ss) 70 +#define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1) 71 +#define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2) 72 +#define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4) 73 +#define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8) [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/src/actions/ |
| H A D | compare_vpd_action.cpp | 50 std::ostringstream ss; in toString() local 51 ss << "compare_vpd: { "; in toString() 52 ss << "fru: " << fru << ", "; in toString() 53 ss << "keyword: " << keyword << ", "; in toString() 54 ss << "value: [ "; in toString() 55 ss << std::hex << std::uppercase; in toString() 58 ss << ((i > 0) ? ", " : "") << "0x" << static_cast<uint16_t>(value[i]); in toString() 60 ss << " ] }"; in toString() 61 return ss.str(); in toString()
|
| H A D | i2c_capture_bytes_action.cpp | 56 std::ostringstream ss; in toString() local 57 ss << "i2c_capture_bytes: { register: 0x" << std::hex << std::uppercase in toString() 60 return ss.str(); in toString() 67 std::ostringstream ss; in getErrorDataKey() local 68 ss << environment.getDeviceID() << "_register_0x" << std::hex in getErrorDataKey() 70 std::string key = ss.str(); in getErrorDataKey() 98 std::ostringstream ss; in getErrorDataValue() local 99 ss << "[ " << std::hex << std::uppercase; in getErrorDataValue() 102 ss << ((i > 0) ? ", " : "") << "0x" << static_cast<uint16_t>(values[i]); in getErrorDataValue() 104 ss << " ]"; in getErrorDataValue() [all …]
|
| H A D | pmbus_write_vout_command_action.cpp | 76 std::ostringstream ss; in toString() local 77 ss << "pmbus_write_vout_command: { "; in toString() 81 ss << "volts: " << volts.value() << ", "; in toString() 84 ss << "format: " << pmbus_utils::toString(format); in toString() 88 ss << ", exponent: " << static_cast<int16_t>(exponent.value()); in toString() 91 ss << ", is_verified: " << std::boolalpha << isWriteVerified << " }"; in toString() 92 return ss.str(); in toString() 160 std::ostringstream ss; in verifyWrite() local 161 ss << "device: " << environment.getDeviceID() in verifyWrite() 164 throw WriteVerificationError(ss.str(), environment.getDeviceID(), in verifyWrite()
|
| H A D | i2c_compare_bytes_action.cpp | 62 std::ostringstream ss; in toString() local 63 ss << "i2c_compare_bytes: { register: 0x" << std::hex << std::uppercase in toString() 67 ss << ((i > 0) ? ", " : "") << "0x" << static_cast<uint16_t>(values[i]); in toString() 69 ss << " ], masks: [ "; in toString() 72 ss << ((i > 0) ? ", " : "") << "0x" << static_cast<uint16_t>(masks[i]); in toString() 74 ss << " ] }"; in toString() 75 return ss.str(); in toString()
|
| H A D | pmbus_read_sensor_action.cpp | 79 std::ostringstream ss; in toString() local 80 ss << "pmbus_read_sensor: { "; in toString() 81 ss << "type: " << sensors::toString(type) << ", " << std::hex in toString() 83 ss << "command: 0x" << static_cast<uint16_t>(command) << ", " << std::dec in toString() 85 ss << "format: " << pmbus_utils::toString(format); in toString() 89 ss << ", exponent: " << static_cast<int16_t>(exponent.value()); in toString() 92 ss << " }"; in toString() 94 return ss.str(); in toString()
|
| H A D | i2c_write_bytes_action.cpp | 74 std::ostringstream ss; in toString() local 75 ss << "i2c_write_bytes: { register: 0x" << std::hex << std::uppercase in toString() 79 ss << ((i > 0) ? ", " : "") << "0x" << static_cast<uint16_t>(values[i]); in toString() 81 ss << " ], masks: [ "; in toString() 84 ss << ((i > 0) ? ", " : "") << "0x" << static_cast<uint16_t>(masks[i]); in toString() 86 ss << " ] }"; in toString() 87 return ss.str(); in toString()
|
| H A D | compare_presence_action.cpp | 51 std::ostringstream ss; in toString() local 52 ss << "compare_presence: { "; in toString() 53 ss << "fru: " << fru << ", "; in toString() 54 ss << "value: " << std::boolalpha << value << " }"; in toString() 56 return ss.str(); in toString()
|
| /openbmc/phosphor-logging/test/ |
| H A D | remote_logging_test_config.cpp | 13 parseConfig(std::istream& ss); 77 std::stringstream ss(str); in TEST_F() local 78 auto ret = phosphor::rsyslog_config::internal::parseConfig(ss); in TEST_F() 88 std::stringstream ss(str); in TEST_F() local 89 auto ret = phosphor::rsyslog_config::internal::parseConfig(ss); in TEST_F() 97 std::stringstream ss(str); in TEST_F() local 98 auto ret = phosphor::rsyslog_config::internal::parseConfig(ss); in TEST_F() 106 std::stringstream ss(str); in TEST_F() local 107 auto ret = phosphor::rsyslog_config::internal::parseConfig(ss); in TEST_F() 115 std::stringstream ss(str); in TEST_F() local [all …]
|
| /openbmc/u-boot/include/ |
| H A D | usb_ether.h | 102 struct ueth_data *ss); 103 int asix_eth_get_info(struct usb_device *dev, struct ueth_data *ss, 108 struct ueth_data *ss); 109 int ax88179_eth_get_info(struct usb_device *dev, struct ueth_data *ss, 114 struct ueth_data *ss); 115 int mcs7830_eth_get_info(struct usb_device *dev, struct ueth_data *ss, 120 struct ueth_data *ss); 121 int smsc95xx_eth_get_info(struct usb_device *dev, struct ueth_data *ss, 126 struct ueth_data *ss); 127 int r8152_eth_get_info(struct usb_device *dev, struct ueth_data *ss,
|
| /openbmc/u-boot/common/ |
| H A D | usb_storage.c | 113 struct us_data *ss); 971 static int usb_inquiry(struct scsi_cmd *srb, struct us_data *ss) in usb_inquiry() argument 982 i = ss->transport(srb, ss); in usb_inquiry() 995 static int usb_request_sense(struct scsi_cmd *srb, struct us_data *ss) in usb_request_sense() argument 1007 ss->transport(srb, ss); in usb_request_sense() 1015 static int usb_test_unit_ready(struct scsi_cmd *srb, struct us_data *ss) in usb_test_unit_ready() argument 1025 if (ss->transport(srb, ss) == USB_STOR_TRANSPORT_GOOD) { in usb_test_unit_ready() 1026 ss->flags |= USB_READY; in usb_test_unit_ready() 1029 usb_request_sense(srb, ss); in usb_test_unit_ready() 1046 static int usb_read_capacity(struct scsi_cmd *srb, struct us_data *ss) in usb_read_capacity() argument [all …]
|
| /openbmc/qemu/hw/s390x/ |
| H A D | s390-skeys.c | 36 S390SKeysState *ss; in s390_get_skeys_device() local 38 ss = S390_SKEYS(object_resolve_path_type("", TYPE_S390_SKEYS, NULL)); in s390_get_skeys_device() 39 assert(ss); in s390_get_skeys_device() 40 return ss; in s390_get_skeys_device() 107 S390SKeysState *ss = s390_get_skeys_device(); in hmp_info_skeys() local 108 S390SKeysClass *skeyclass = S390_SKEYS_GET_CLASS(ss); in hmp_info_skeys() 114 if (!skeyclass->skeys_are_enabled(ss)) { in hmp_info_skeys() 126 r = skeyclass->get_skeys(ss, addr / TARGET_PAGE_SIZE, 1, &key); in hmp_info_skeys() 148 S390SKeysState *ss = s390_get_skeys_device(); in s390_qmp_dump_skeys() local 149 S390SKeysClass *skeyclass = S390_SKEYS_GET_CLASS(ss); in s390_qmp_dump_skeys() [all …]
|
| H A D | s390-skeys-kvm.c | 18 static bool kvm_s390_skeys_are_enabled(S390SKeysState *ss) in kvm_s390_skeys_are_enabled() argument 20 S390SKeysClass *skeyclass = S390_SKEYS_GET_CLASS(ss); in kvm_s390_skeys_are_enabled() 24 r = skeyclass->get_skeys(ss, 0, 1, &single_key); in kvm_s390_skeys_are_enabled() 31 static int kvm_s390_skeys_get(S390SKeysState *ss, uint64_t start_gfn, in kvm_s390_skeys_get() argument 43 static int kvm_s390_skeys_set(S390SKeysState *ss, uint64_t start_gfn, in kvm_s390_skeys_set() argument
|
| /openbmc/fb-ipmi-oem/src/ |
| H A D | oemcommands.cpp | 388 std::stringstream ss; in bytesToStr() local 391 ss << std::hex; in bytesToStr() 394 ss << std::setw(2) << std::setfill('0') << (int)byte[i]; in bytesToStr() 397 return ss.str(); in bytesToStr() 1064 std::stringstream ss; in ipmiOemSetDimmInfo() local 1065 ss << std::hex; in ipmiOemSetDimmInfo() 1066 ss << std::setw(2) << std::setfill('0') << (int)index; in ipmiOemSetDimmInfo() 1068 oemData[KEY_SYS_CONFIG][ss.str()][KEY_DIMM_INDEX] = index; in ipmiOemSetDimmInfo() 1069 oemData[KEY_SYS_CONFIG][ss.str()][KEY_DIMM_TYPE] = type; in ipmiOemSetDimmInfo() 1070 oemData[KEY_SYS_CONFIG][ss.str()][KEY_DIMM_SPEED] = speed; in ipmiOemSetDimmInfo() [all …]
|
| /openbmc/qemu/hw/display/ |
| H A D | virtio-gpu-virgl.c | 402 struct virtio_gpu_set_scanout ss; in virgl_cmd_set_scanout() local 405 VIRTIO_GPU_FILL_CMD(ss); in virgl_cmd_set_scanout() 406 trace_virtio_gpu_cmd_set_scanout(ss.scanout_id, ss.resource_id, in virgl_cmd_set_scanout() 407 ss.r.width, ss.r.height, ss.r.x, ss.r.y); in virgl_cmd_set_scanout() 409 if (ss.scanout_id >= g->parent_obj.conf.max_outputs) { in virgl_cmd_set_scanout() 411 __func__, ss.scanout_id); in virgl_cmd_set_scanout() 417 if (ss.resource_id && ss.r.width && ss.r.height) { in virgl_cmd_set_scanout() 424 ret = virgl_renderer_resource_get_info_ext(ss.resource_id, &ext); in virgl_cmd_set_scanout() 429 ret = virgl_renderer_resource_get_info(ss.resource_id, &info); in virgl_cmd_set_scanout() 434 __func__, ss.resource_id); in virgl_cmd_set_scanout() [all …]
|
| /openbmc/u-boot/drivers/net/fsl-mc/dpio/ |
| H A D | qbman_sys.h | 36 const uint32_t *ss = s; in word_copy() local 39 *(dd++) = *(ss++); in word_copy() 51 const uint32_t *ss = (const uint32_t *)s; in u64_to_le32_copy() local 59 *(dd++) = ss[1]; in u64_to_le32_copy() 60 *(dd++) = ss[0]; in u64_to_le32_copy() 61 ss += 2; in u64_to_le32_copy() 63 *(dd++) = *(ss++); in u64_to_le32_copy() 64 *(dd++) = *(ss++); in u64_to_le32_copy() 71 const uint32_t *ss = s; in u64_from_le32_copy() local 76 dd[1] = *(ss++); in u64_from_le32_copy() [all …]
|
| /openbmc/phosphor-fan-presence/control/json/utils/ |
| H A D | flight_recorder.cpp | 75 std::stringstream ss; in dump() local 81 ss << std::put_time(std::localtime(&tt), "%b %d %H:%M:%S."); in dump() 82 ss << std::setfill('0') << std::setw(6) << std::to_string(us % 1000000); in dump() 83 return ss.str(); in dump() 87 std::stringstream ss; in dump() local 91 ss << formatTime(ts) << ": " << std::setw(idSize) << id << ": " << msg; in dump() 92 fr.push_back(ss.str()); in dump() 93 ss.str(""); in dump()
|
| /openbmc/u-boot/drivers/usb/eth/ |
| H A D | asix.c | 625 struct ueth_data *ss) in asix_eth_probe() argument 646 memset(ss, 0, sizeof(struct ueth_data)); in asix_eth_probe() 653 ss->ifnum = ifnum; in asix_eth_probe() 654 ss->pusb_dev = dev; in asix_eth_probe() 655 ss->subclass = iface_desc->bInterfaceSubClass; in asix_eth_probe() 656 ss->protocol = iface_desc->bInterfaceProtocol; in asix_eth_probe() 659 ss->dev_priv = calloc(1, sizeof(struct asix_private)); in asix_eth_probe() 660 if (!ss->dev_priv) in asix_eth_probe() 663 ((struct asix_private *)ss->dev_priv)->flags = asix_dongles[i].flags; in asix_eth_probe() 676 ss->ep_in = ep_addr & in asix_eth_probe() [all …]
|
| H A D | mcs7830.c | 719 struct ueth_data *ss) in mcs7830_eth_probe() argument 748 memset(ss, 0, sizeof(*ss)); in mcs7830_eth_probe() 749 ss->ifnum = ifnum; in mcs7830_eth_probe() 750 ss->pusb_dev = dev; in mcs7830_eth_probe() 751 ss->subclass = iface_desc->bInterfaceSubClass; in mcs7830_eth_probe() 752 ss->protocol = iface_desc->bInterfaceProtocol; in mcs7830_eth_probe() 753 ss->dev_priv = priv; in mcs7830_eth_probe() 773 ss->ep_in = epaddr; in mcs7830_eth_probe() 777 ss->ep_out = epaddr; in mcs7830_eth_probe() 784 ss->ep_int = epaddr; in mcs7830_eth_probe() [all …]
|
| /openbmc/qemu/util/ |
| H A D | coroutine-sigaltstack.c | 154 stack_t ss; in qemu_coroutine_new() local 202 ss.ss_sp = co->stack; in qemu_coroutine_new() 203 ss.ss_size = co->stack_size; in qemu_coroutine_new() 204 ss.ss_flags = 0; in qemu_coroutine_new() 205 if (sigaltstack(&ss, &oss) < 0) { in qemu_coroutine_new() 229 sigaltstack(NULL, &ss); in qemu_coroutine_new() 230 ss.ss_flags = SS_DISABLE; in qemu_coroutine_new() 231 if (sigaltstack(&ss, NULL) < 0) { in qemu_coroutine_new() 234 sigaltstack(NULL, &ss); in qemu_coroutine_new()
|
| /openbmc/qemu/tests/unit/ |
| H A D | socket-helpers.c | 45 struct sockaddr_storage ss; in socket_can_bind_connect() local 46 socklen_t sslen = sizeof(ss); in socket_can_bind_connect() 87 if (getsockname(lfd, (struct sockaddr *)&ss, &sslen) < 0) { in socket_can_bind_connect() 92 if (connect(cfd, (struct sockaddr *)&ss, sslen) < 0) { in socket_can_bind_connect() 100 sslen = sizeof(ss); in socket_can_bind_connect() 101 afd = accept(lfd, (struct sockaddr *)&ss, &sslen); in socket_can_bind_connect()
|
| /openbmc/slpd-lite/ |
| H A D | slp_server.cpp | 31 sigset_t ss; in run() local 42 if (sigemptyset(&ss) < 0 || sigaddset(&ss, SIGTERM) < 0 || in run() 43 sigaddset(&ss, SIGINT) < 0) in run() 49 if (sigprocmask(SIG_BLOCK, &ss, NULL) < 0) in run()
|