/openbmc/qemu/util/ |
H A D | readline.c | 35 void readline_show_prompt(ReadLineState *rs) in readline_show_prompt() argument 37 rs->printf_func(rs->opaque, "%s", rs->prompt); in readline_show_prompt() 38 rs->flush_func(rs->opaque); in readline_show_prompt() 39 rs->last_cmd_buf_index = 0; in readline_show_prompt() 40 rs->last_cmd_buf_size = 0; in readline_show_prompt() 41 rs->esc_state = IS_NORM; in readline_show_prompt() 45 static void readline_update(ReadLineState *rs) in readline_update() argument 49 if (rs->cmd_buf_size != rs->last_cmd_buf_size || in readline_update() 50 memcmp(rs->cmd_buf, rs->last_cmd_buf, rs->cmd_buf_size) != 0) { in readline_update() 51 for (i = 0; i < rs->last_cmd_buf_index; i++) { in readline_update() [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/rust/files/ |
H A D | rv32-rustix-libc-backend.patch | 5 --- a/vendor/rustix-0.38.32/src/backend/libc/c.rs 6 +++ b/vendor/rustix-0.38.32/src/backend/libc/c.rs 19 …rs":"e260e67273aa0a37cffdc5cd451699335b8ee656c17275a0d0f2b4563c6018ca","build.rs":"5f93559819ca7fe… 21 …rs":"e260e67273aa0a37cffdc5cd451699335b8ee656c17275a0d0f2b4563c6018ca","build.rs":"5f93559819ca7fe… 23 --- a/vendor/rustix-0.38.32/src/fs/ioctl.rs 24 +++ b/vendor/rustix-0.38.32/src/fs/ioctl.rs
|
H A D | rv32-cargo-rustix-0.38.28-fix.patch | 12 --- a/vendor/rustix-0.38.28/src/backend/libc/termios/syscalls.rs 13 +++ b/vendor/rustix-0.38.28/src/backend/libc/termios/syscalls.rs 37 …rs":"e260e67273aa0a37cffdc5cd451699335b8ee656c17275a0d0f2b4563c6018ca","build.rs":"5f93559819ca7fe… 39 …rs":"e260e67273aa0a37cffdc5cd451699335b8ee656c17275a0d0f2b4563c6018ca","build.rs":"5f93559819ca7fe… 40 --- a/vendor/rustix-0.38.28/src/fs/ioctl.rs 41 +++ b/vendor/rustix-0.38.28/src/fs/ioctl.rs 60 --- a/vendor/rustix-0.38.28/src/backend/libc/c.rs 61 +++ b/vendor/rustix-0.38.28/src/backend/libc/c.rs
|
H A D | repro-issue-fix-with-cc-crate-hashmap.patch | 7 https://github.com/rust-lang/cc-rs/pull/1277 9 Upstream-Status: Submitted [https://github.com/rust-lang/cc-rs/pull/1277] 11 --- a/vendor/cc-1.0.97/src/command_helpers.rs 12 +++ b/vendor/cc-1.0.97/src/command_helpers.rs 52 diff --git a/vendor/cc-1.0.99/src/command_helpers.rs b/vendor/cc-1.0.99/src/command_helpers.rs 54 --- a/vendor/cc-1.0.99/src/command_helpers.rs 55 +++ b/vendor/cc-1.0.99/src/command_helpers.rs 100 …rs":"15afbc35930a5a53f00d74a8910cff35caeb5511c26642cffe5630377aced901","src/detect_compiler_family… 102 …rs":"4c4a9ea55a109dbeada9e23d4ec963c257a56451b5fd16c7e4e8b97374f1a2ff","src/detect_compiler_family… 106 …rs":"15afbc35930a5a53f00d74a8910cff35caeb5511c26642cffe5630377aced901","src/detect_compiler_family… [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-raid.c | 260 static void rs_config_backup(struct raid_set *rs, struct rs_layout *l) in rs_config_backup() argument 262 struct mddev *mddev = &rs->md; in rs_config_backup() 269 static void rs_config_restore(struct raid_set *rs, struct rs_layout *l) in rs_config_restore() argument 271 struct mddev *mddev = &rs->md; in rs_config_restore() 400 static bool rs_is_raid0(struct raid_set *rs) in rs_is_raid0() argument 402 return !rs->md.level; in rs_is_raid0() 406 static bool rs_is_raid1(struct raid_set *rs) in rs_is_raid1() argument 408 return rs->md.level == 1; in rs_is_raid1() 412 static bool rs_is_raid10(struct raid_set *rs) in rs_is_raid10() argument 414 return rs->md.level == 10; in rs_is_raid10() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-rockchip.c | 204 static inline void spi_enable_chip(struct rockchip_spi *rs, bool enable) in spi_enable_chip() argument 206 writel_relaxed((enable ? 1U : 0U), rs->regs + ROCKCHIP_SPI_SSIENR); in spi_enable_chip() 209 static inline void wait_for_tx_idle(struct rockchip_spi *rs, bool target_mode) in wait_for_tx_idle() argument 215 if (!(readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_TARGET_TX_BUSY) && in wait_for_tx_idle() 216 !((readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_BUSY))) in wait_for_tx_idle() 219 if (!(readl_relaxed(rs->regs + ROCKCHIP_SPI_SR) & SR_BUSY)) in wait_for_tx_idle() 224 dev_warn(rs->dev, "spi controller is in busy state!\n"); in wait_for_tx_idle() 227 static u32 get_fifo_len(struct rockchip_spi *rs) in get_fifo_len() argument 231 ver = readl_relaxed(rs->regs + ROCKCHIP_SPI_VERSION); in get_fifo_len() 245 struct rockchip_spi *rs = spi_controller_get_devdata(ctlr); in rockchip_spi_set_cs() local [all …]
|
H A D | spi-mt7621.c | 68 static inline u32 mt7621_spi_read(struct mt7621_spi *rs, u32 reg) in mt7621_spi_read() argument 70 return ioread32(rs->base + reg); in mt7621_spi_read() 73 static inline void mt7621_spi_write(struct mt7621_spi *rs, u32 reg, u32 val) in mt7621_spi_write() argument 75 iowrite32(val, rs->base + reg); in mt7621_spi_write() 80 struct mt7621_spi *rs = spidev_to_mt7621_spi(spi); in mt7621_spi_set_cs() local 90 master = mt7621_spi_read(rs, MT7621_SPI_MASTER); in mt7621_spi_set_cs() 93 mt7621_spi_write(rs, MT7621_SPI_MASTER, master); in mt7621_spi_set_cs() 95 rs->pending_write = 0; in mt7621_spi_set_cs() 99 mt7621_spi_write(rs, MT7621_SPI_POLAR, polar); in mt7621_spi_set_cs() 104 struct mt7621_spi *rs = spidev_to_mt7621_spi(spi); in mt7621_spi_prepare() local [all …]
|
/openbmc/linux/lib/reed_solomon/ |
H A D | reed_solomon.c | 74 struct rs_codec *rs; in codec_init() local 76 rs = kzalloc(sizeof(*rs), gfp); in codec_init() 77 if (!rs) in codec_init() 80 INIT_LIST_HEAD(&rs->list); in codec_init() 82 rs->mm = symsize; in codec_init() 83 rs->nn = (1 << symsize) - 1; in codec_init() 84 rs->fcr = fcr; in codec_init() 85 rs->prim = prim; in codec_init() 86 rs->nroots = nroots; in codec_init() 87 rs->gfpoly = gfpoly; in codec_init() [all …]
|
/openbmc/linux/net/rds/ |
H A D | af_rds.c | 62 struct rds_sock *rs; in rds_release() local 67 rs = rds_sk_to_rs(sk); in rds_release() 73 rds_clear_recv_queue(rs); in rds_release() 74 rds_cong_remove_socket(rs); in rds_release() 76 rds_remove_bound(rs); in rds_release() 78 rds_send_drop_to(rs, NULL); in rds_release() 79 rds_rdma_drop_keys(rs); in rds_release() 80 rds_notify_queue_get(rs, NULL); in rds_release() 81 rds_notify_msg_zcopy_purge(&rs->rs_zcookie_queue); in rds_release() 84 list_del_init(&rs->rs_item); in rds_release() [all …]
|
H A D | bind.c | 76 struct rds_sock *rs; in rds_find_bound() local 80 rs = rhashtable_lookup(&bind_hash_table, key, ht_parms); in rds_find_bound() 81 if (rs && (sock_flag(rds_rs_to_sk(rs), SOCK_DEAD) || in rds_find_bound() 82 !refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt))) in rds_find_bound() 83 rs = NULL; in rds_find_bound() 87 rdsdebug("returning rs %p for %pI6c:%u\n", rs, addr, in rds_find_bound() 90 return rs; in rds_find_bound() 94 static int rds_add_bound(struct rds_sock *rs, const struct in6_addr *addr, in rds_add_bound() argument 122 memcpy(rs->rs_bound_key, key, sizeof(rs->rs_bound_key)); in rds_add_bound() 123 rs->rs_bound_addr = *addr; in rds_add_bound() [all …]
|
H A D | recv.c | 88 static void rds_recv_rcvbuf_delta(struct rds_sock *rs, struct sock *sk, in rds_recv_rcvbuf_delta() argument 97 rs->rs_rcv_bytes += delta; in rds_recv_rcvbuf_delta() 104 if (rs->rs_transport->t_type == RDS_TRANS_LOOP) in rds_recv_rcvbuf_delta() 107 now_congested = rs->rs_rcv_bytes > rds_sk_rcvbuf(rs); in rds_recv_rcvbuf_delta() 111 rs, &rs->rs_bound_addr, in rds_recv_rcvbuf_delta() 112 ntohs(rs->rs_bound_port), rs->rs_rcv_bytes, in rds_recv_rcvbuf_delta() 113 rds_sk_rcvbuf(rs), now_congested, delta); in rds_recv_rcvbuf_delta() 116 if (!rs->rs_congested && now_congested) { in rds_recv_rcvbuf_delta() 117 rs->rs_congested = 1; in rds_recv_rcvbuf_delta() 124 else if (rs->rs_congested && (rs->rs_rcv_bytes < (rds_sk_rcvbuf(rs)/2))) { in rds_recv_rcvbuf_delta() [all …]
|
/openbmc/qemu/target/rx/ |
H A D | insns.decode | 23 &jreg rs 24 &rr rd rs 26 &rrr rd rs rs2 28 &rm rd rs ld mi 29 &mi rs ld mi imm 30 &mr rs ld mi rs2 43 @b2_rds .... .... .... rd:4 &rr rs=%b2_r_0 49 @b2_rd_ld_ub .... .. ld:2 rs:4 rd:4 &rm mi=4 50 @b2_ld_imm3 .... .. ld:2 rs:4 . imm:3 &mi mi=4 61 @b3_rd_rs .... .... .... .... rs:4 rd:4 &rr [all …]
|
/openbmc/linux/fs/jffs2/ |
H A D | compr_rubin.c | 88 static void init_rubin(struct rubin_state *rs, int div, int *bits) in init_rubin() argument 92 rs->q = 0; in init_rubin() 93 rs->p = (long) (2 * UPPER_BIT_RUBIN); in init_rubin() 94 rs->bit_number = (long) 0; in init_rubin() 95 rs->bit_divider = div; in init_rubin() 98 rs->bits[c] = bits[c]; in init_rubin() 102 static int encode(struct rubin_state *rs, long A, long B, int symbol) in encode() argument 108 while ((rs->q >= UPPER_BIT_RUBIN) || in encode() 109 ((rs->p + rs->q) <= UPPER_BIT_RUBIN)) { in encode() 110 rs->bit_number++; in encode() [all …]
|
/openbmc/qemu/ |
H A D | replication.c | 23 ReplicationState *rs; in replication_new() local 26 rs = g_new0(ReplicationState, 1); in replication_new() 27 rs->opaque = opaque; in replication_new() 28 rs->ops = ops; in replication_new() 29 QLIST_INSERT_HEAD(&replication_states, rs, node); in replication_new() 31 return rs; in replication_new() 34 void replication_remove(ReplicationState *rs) in replication_remove() argument 36 if (rs) { in replication_remove() 37 QLIST_REMOVE(rs, node); in replication_remove() 38 g_free(rs); in replication_remove() [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | mt7621_spi.c | 48 static void mt7621_spi_reset(struct mt7621_spi *rs, int duplex) in mt7621_spi_reset() argument 50 setbits_le32(rs->base + MT7621_SPI_MASTER, in mt7621_spi_reset() 54 static void mt7621_spi_set_cs(struct mt7621_spi *rs, int cs, int enable) in mt7621_spi_set_cs() argument 61 iowrite32(val, rs->base + MT7621_SPI_POLAR); in mt7621_spi_set_cs() 66 struct mt7621_spi *rs = dev_get_priv(bus); in mt7621_spi_set_mode() local 70 reg = ioread32(rs->base + MT7621_SPI_MASTER); in mt7621_spi_set_mode() 90 iowrite32(reg, rs->base + MT7621_SPI_MASTER); in mt7621_spi_set_mode() 97 struct mt7621_spi *rs = dev_get_priv(bus); in mt7621_spi_set_speed() local 102 rate = DIV_ROUND_UP(rs->sys_freq, speed); in mt7621_spi_set_speed() 111 reg = ioread32(rs->base + MT7621_SPI_MASTER); in mt7621_spi_set_speed() [all …]
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | reap.c | 143 static inline bool xreap_dirty(const struct xreap_state *rs) in xreap_dirty() argument 145 if (rs->force_roll) in xreap_dirty() 147 if (rs->deferred) in xreap_dirty() 149 if (rs->invalidated) in xreap_dirty() 151 if (rs->total_deferred) in xreap_dirty() 164 static inline bool xreap_want_roll(const struct xreap_state *rs) in xreap_want_roll() argument 166 if (rs->force_roll) in xreap_want_roll() 168 if (rs->deferred > XREP_MAX_ITRUNCATE_EFIS) in xreap_want_roll() 170 if (rs->invalidated > XREAP_MAX_BINVAL) in xreap_want_roll() 175 static inline void xreap_reset(struct xreap_state *rs) in xreap_reset() argument [all …]
|
/openbmc/linux/fs/isofs/ |
H A D | rock.c | 54 struct inode *inode, struct rock_state *rs) in setup_rock_ridge() argument 56 rs->len = sizeof(struct iso_directory_record) + de->name_len[0]; in setup_rock_ridge() 57 if (rs->len & 1) in setup_rock_ridge() 58 (rs->len)++; in setup_rock_ridge() 59 rs->chr = (unsigned char *)de + rs->len; in setup_rock_ridge() 60 rs->len = *((unsigned char *)de) - rs->len; in setup_rock_ridge() 61 if (rs->len < 0) in setup_rock_ridge() 62 rs->len = 0; in setup_rock_ridge() 65 rs->len -= ISOFS_SB(inode->i_sb)->s_rock_offset; in setup_rock_ridge() 66 rs->chr += ISOFS_SB(inode->i_sb)->s_rock_offset; in setup_rock_ridge() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | tcp_rate.c | 81 struct rate_sample *rs) in tcp_rate_skb_delivered() argument 91 if (!rs->prior_delivered || in tcp_rate_skb_delivered() 93 scb->end_seq, rs->last_end_seq)) { in tcp_rate_skb_delivered() 94 rs->prior_delivered_ce = scb->tx.delivered_ce; in tcp_rate_skb_delivered() 95 rs->prior_delivered = scb->tx.delivered; in tcp_rate_skb_delivered() 96 rs->prior_mstamp = scb->tx.delivered_mstamp; in tcp_rate_skb_delivered() 97 rs->is_app_limited = scb->tx.is_app_limited; in tcp_rate_skb_delivered() 98 rs->is_retrans = scb->sacked & TCPCB_RETRANS; in tcp_rate_skb_delivered() 99 rs->last_end_seq = scb->end_seq; in tcp_rate_skb_delivered() 104 rs->interval_us = tcp_stamp_us_delta(tp->first_tx_mstamp, in tcp_rate_skb_delivered() [all …]
|
/openbmc/linux/lib/crypto/ |
H A D | des.c | 65 static const u8 rs[256] = { variable 634 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey() 635 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 636 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 637 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 638 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 639 pe[10 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 640 pe[ 9 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 641 pe[ 8 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; in des_ekey() 642 pe[ 7 * 2 + 0] = DES_PC2(c, d, a, b); b = rs[b]; a = rs[a]; in des_ekey() [all …]
|
/openbmc/linux/lib/ |
H A D | ratelimit.c | 27 int ___ratelimit(struct ratelimit_state *rs, const char *func) in ___ratelimit() argument 33 int interval = READ_ONCE(rs->interval); in ___ratelimit() 34 int burst = READ_ONCE(rs->burst); in ___ratelimit() 47 if (!raw_spin_trylock_irqsave(&rs->lock, flags)) in ___ratelimit() 50 if (!rs->begin) in ___ratelimit() 51 rs->begin = jiffies; in ___ratelimit() 53 if (time_is_before_jiffies(rs->begin + interval)) { in ___ratelimit() 54 if (rs->missed) { in ___ratelimit() 55 if (!(rs->flags & RATELIMIT_MSG_ON_RELEASE)) { in ___ratelimit() 58 func, rs->missed); in ___ratelimit() [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | uasm.h | 201 void UASM_i_LA_mostly(u32 **buf, unsigned int rs, long addr); 202 void UASM_i_LA(u32 **buf, unsigned int rs, long addr); 212 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) argument 213 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) argument 214 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument 215 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) argument 216 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_ldx(buf, rs, rt, rd) argument 219 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_drotr(buf, rs, rt, sh) argument 220 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) argument 221 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_dsll(buf, rs, rt, sh) argument [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | octeon.decode | 15 BBIT 11 set:1 . 10 rs:5 ..... offset:s16 p=%bbit_p 18 # BADDU rd, rs, rt 19 # DMUL rd, rs, rt 20 # EXTS rt, rs, p, lenm1 21 # EXTS32 rt, rs, p, lenm1 22 # CINS rt, rs, p, lenm1 23 # CINS32 rt, rs, p, lenm1 24 # DPOP rd, rs 25 # POP rd, rs 26 # SEQ rd, rs, rt [all …]
|
/openbmc/linux/fs/reiserfs/ |
H A D | objectid.c | 11 #define objectid_map(s,rs) (old_format_only (s) ? \ argument 12 (__le32 *)((struct reiserfs_super_block_v1 *)(rs) + 1) :\ 13 (__le32 *)((rs) + 1)) 52 struct reiserfs_super_block *rs = SB_DISK_SUPER_BLOCK(s); in reiserfs_get_unused_objectid() local 53 __le32 *map = objectid_map(s, rs); in reiserfs_get_unused_objectid() 86 if (sb_oid_cursize(rs) > 2 && map[1] == map[2]) { in reiserfs_get_unused_objectid() 88 (sb_oid_cursize(rs) - 3) * sizeof(__u32)); in reiserfs_get_unused_objectid() 89 set_sb_oid_cursize(rs, sb_oid_cursize(rs) - 2); in reiserfs_get_unused_objectid() 101 struct reiserfs_super_block *rs = SB_DISK_SUPER_BLOCK(s); in reiserfs_release_objectid() local 102 __le32 *map = objectid_map(s, rs); in reiserfs_release_objectid() [all …]
|
/openbmc/qemu/qga/ |
H A D | channel-win32.c | 41 GAChannelReadState *rs = &c->rstate; in ga_channel_prepare() local 50 if (!rs->ov_pending) { in ga_channel_prepare() 51 if (rs->cur + rs->pending >= rs->buf_size) { in ga_channel_prepare() 52 if (rs->cur) { in ga_channel_prepare() 53 memmove(rs->buf, rs->buf + rs->cur, rs->pending); in ga_channel_prepare() 54 rs->cur = 0; in ga_channel_prepare() 57 count_to_read = rs->buf_size - rs->cur - rs->pending; in ga_channel_prepare() 60 if (rs->ov_pending || count_to_read <= 0) { in ga_channel_prepare() 65 success = ReadFile(c->handle, rs->buf + rs->cur + rs->pending, in ga_channel_prepare() 66 count_to_read, &count_read, &rs->ov); in ga_channel_prepare() [all …]
|
/openbmc/u-boot/post/lib_powerpc/ |
H A D | cpu_asm.h | 117 #define ASM_11(opcode, rd, rs) ((opcode) + \ argument 119 ((rs) << 16)) 123 #define ASM_11X(opcode, rd, rs) ((opcode) + \ argument 124 ((rs) << 21) + \ 126 #define ASM_11I(opcode, rd, rs, simm) ((opcode) + \ argument 128 ((rs) << 16) + \ 130 #define ASM_11IF(opcode, rd, rs, simm) ((opcode) + \ argument 132 ((rs) << 16) + \ 134 #define ASM_11S(opcode, rd, rs, sh) ((opcode) + \ argument 135 ((rs) << 21) + \ [all …]
|