/linux/drivers/bus/ |
H A D | sunxi-rsb.c | 3 * RSB (Reduced Serial Bus) driver. 7 * The RSB controller looks like an SMBus controller which only supports 24 * RSB section of Allwinner's A80 user manual, which can be found at 49 #include <linux/sunxi-rsb.h> 52 /* RSB registers */ 61 #define RSB_CMD 0x2c /* RSB Command */ 112 #define RSB_CTRL_NAME "sunxi-rsb" 196 * sunxi_rsb_device_create() - allocate and add an RSB device 197 * @rsb: RSB controller 198 * @node: RSB slave device node [all …]
|
H A D | Kconfig | 193 (RSB) support. This controller is responsible for communicating 194 with various RSB based devices, such as AXP223, AXP8XX PMICs,
|
/linux/Documentation/devicetree/bindings/bus/ |
H A D | allwinner,sun8i-a23-rsb.yaml | 4 $id: http://devicetree.org/schemas/bus/allwinner,sun8i-a23-rsb.yaml# 7 title: Allwinner A23 RSB 22 - const: allwinner,sun8i-a23-rsb 25 - allwinner,sun8i-a83t-rsb 26 - allwinner,sun50i-h616-rsb 27 - const: allwinner,sun8i-a23-rsb 65 rsb@1f03400 { 66 compatible = "allwinner,sun8i-a23-rsb";
|
/linux/include/linux/ |
H A D | sunxi-rsb.h | 22 * struct sunxi_rsb_device - Basic representation of an RSB device 24 * @ctrl: RSB controller managing the bus hosting this device. 30 struct sunxi_rsb *rsb; member 53 * struct sunxi_rsb_driver - RSB slave device driver 54 * @driver: RSB device drivers should initialize name and owner field of 56 * @probe: binds this driver to a RSB device. 57 * @remove: unbinds this driver from the RSB device. 73 * sunxi_rsb_driver_unregister() - unregister an RSB client driver
|
/linux/fs/dlm/ |
H A D | lock.c | 39 Stage 2, xxxx_lock(), just finds and locks the relevant rsb which is 46 given rsb and lkb and queues callbacks. 173 printk(KERN_ERR "rsb: nodeid %d master %d dir %d flags %lx first %x " in dlm_print_rsb() 186 printk(KERN_ERR "rsb: root_list empty %d recover_list empty %d\n", in dlm_dump_rsb() 188 printk(KERN_ERR "rsb lookup list\n"); in dlm_dump_rsb() 191 printk(KERN_ERR "rsb grant queue:\n"); in dlm_dump_rsb() 194 printk(KERN_ERR "rsb convert queue:\n"); in dlm_dump_rsb() 197 printk(KERN_ERR "rsb wait queue:\n"); in dlm_dump_rsb() 320 * Basic operations on rsb's and lkb's 329 a valid reference to the rsb, so there's no need for locking. */ [all …]
|
H A D | recover.c | 229 * The recover_list contains all the rsb's for which we've requested the new 231 * rsb's are removed from the list. When the list is empty we're done. 233 * The recover_list is later similarly used for all rsb's for which we've sent 236 * We use the address of the rsb struct as a simple local identifier for the 237 * rsb so we can match an rcom reply with the rsb it was sent for. 384 /* Master recovery: find new master node for rsb's that were 400 * If we are the new master of the rsb, we may have received new 426 * The NEW_MASTER flag tells dlm_recover_locks() which rsb's to consider. 428 * rsb's to consider. 439 * We do async lookups on rsb's that need new masters. The rsb's [all …]
|
H A D | ast.c | 60 struct dlm_rsb *rsb = lkb->lkb_resource; in dlm_may_skip_callback() local 61 struct dlm_ls *ls = rsb->res_ls; in dlm_may_skip_callback() 125 struct dlm_rsb *rsb = lkb->lkb_resource; in dlm_get_cb() local 126 struct dlm_ls *ls = rsb->res_ls; in dlm_get_cb() 135 memcpy((*cb)->res_name, rsb->res_name, rsb->res_length); in dlm_get_cb() 136 (*cb)->res_length = rsb->res_length; in dlm_get_cb() 168 struct dlm_rsb *rsb = lkb->lkb_resource; in dlm_add_cb() local 169 struct dlm_ls *ls = rsb->res_ls; in dlm_add_cb() 191 lkb->lkb_astparam, rsb->res_name, in dlm_add_cb() 192 rsb->res_length); in dlm_add_cb()
|
H A D | dlm_internal.h | 170 * lkb_status: the lock status indicates which rsb queue the lock is 254 struct dlm_rsb *lkb_resource; /* the rsb */ 256 int lkb_nodeid; /* copied from rsb */ 275 struct list_head lkb_statequeue; /* rsb g/c/w list */ 276 struct list_head lkb_rsb_lookup; /* waiting for rsb lookup */ 316 int res_length; /* length of rsb name */ 371 RSB_HASHED, /* set while rsb is on ls_rsbtbl */ 578 /* an rsb is on rsbtl for primary locking functions, 585 struct timer_list ls_scan_timer; /* based on first scan_list rsb toss_time */
|
H A D | dir.c | 26 * Low bits are used for distribution of rsb's among hash buckets on each node. 293 /* Find the rsb where we left off (or start again), then send rsb names 294 for rsb's we're master of and whose directory node matches the requesting 295 node. inbuf is the rsb name last sent, inlen is the name's length */
|
H A D | recoverd.c | 137 * This list of root rsb's will be the basis of most of the recovery in ls_recover() 191 * nodes their master rsb names that hash to us. in ls_recover() 233 * Get new master nodeid's for rsb's that were mastered on in ls_recover() 244 * Send our locks on remastered rsb's to the new masters. in ls_recover() 265 * Finalize state in master rsb's now that all locks can be in ls_recover()
|
H A D | memory.c | 49 goto rsb; in dlm_memory_init() 61 rsb: in dlm_memory_init()
|
/linux/drivers/mfd/ |
H A D | axp20x-rsb.c | 3 * RSB driver for the X-Powers' Power Management ICs 9 * This driver supports the RSB variants. 23 #include <linux/sunxi-rsb.h> 72 .name = "axp20x-rsb", 80 MODULE_DESCRIPTION("PMIC MFD sunXi RSB driver for AXP20X");
|
/linux/drivers/md/ |
H A D | dm-verity-fec.c | 62 static u8 *fec_read_parity(struct dm_verity *v, u64 rsb, int index, in fec_read_parity() argument 69 position = (index + rsb) * v->fec->roots; in fec_read_parity() 76 v->data_dev->name, (unsigned long long)rsb, in fec_read_parity() 126 struct dm_verity_fec_io *fio, u64 rsb, int byte_index, in fec_decode_bufs() argument 135 par = fec_read_parity(v, rsb, block_offset, &offset, &buf, bio_prio(bio)); in fec_decode_bufs() 163 par = fec_read_parity(v, rsb, block_offset, &offset, &buf, bio_prio(bio)); in fec_decode_bufs() 175 v->data_dev->name, (unsigned long long)rsb, r); in fec_decode_bufs() 178 v->data_dev->name, (unsigned long long)rsb, r); in fec_decode_bufs() 202 u64 rsb, u64 target, unsigned int block_offset, in fec_read_bufs() argument 227 ileaved = fec_interleave(v, rsb * v->fec->rsn + i); in fec_read_bufs() [all …]
|
/linux/fs/romfs/ |
H A D | super.c | 452 struct romfs_super_block *rsb; in romfs_fill_super() local 481 rsb = kmalloc(512, GFP_KERNEL); in romfs_fill_super() 482 if (!rsb) in romfs_fill_super() 486 ret = romfs_dev_read(sb, 0, rsb, 512); in romfs_fill_super() 490 img_size = be32_to_cpu(rsb->size); in romfs_fill_super() 497 if (rsb->word0 != ROMSB_WORD0 || rsb->word1 != ROMSB_WORD1 || in romfs_fill_super() 505 if (romfs_checksum(rsb, min_t(size_t, img_size, 512))) { in romfs_fill_super() 512 len = strnlen(rsb->name, ROMFS_MAXFN); in romfs_fill_super() 515 (unsigned) len, (unsigned) len, rsb->name, storage); in romfs_fill_super() 517 kfree(rsb); in romfs_fill_super() [all …]
|
/linux/arch/x86/kvm/vmx/ |
H A D | vmenter.S | 117 * IMPORTANT: To avoid RSB underflow attacks and any other nastiness, 259 * IMPORTANT: RSB filling and SPEC_CTRL handling must be done before 262 * For retpoline or IBRS, RSB filling is needed to prevent poisoned RSB 263 * entries and (in some cases) RSB underflow. 265 * eIBRS has its own protection against poisoned RSB, so it doesn't 266 * need the RSB filling sequence. But it does need to be enabled, and a
|
/linux/arch/x86/kernel/cpu/ |
H A D | bugs.c | 1131 * There is no need for RSB filling: entry_ibpb() ensures in retbleed_select_mitigation() 1132 * all predictions, including the RSB, are invalidated, in retbleed_select_mitigation() 1563 /* Disable in-kernel use of non-RSB RET predictors */ 1585 * Similar to context switches, there are two types of RSB attacks in spectre_v2_determine_rsb_fill_type_at_vmexit() 1588 * 1) RSB underflow in spectre_v2_determine_rsb_fill_type_at_vmexit() 1590 * 2) Poisoned RSB entry in spectre_v2_determine_rsb_fill_type_at_vmexit() 1593 * the RSB. in spectre_v2_determine_rsb_fill_type_at_vmexit() 1596 * prediction isolation protections, RSB still needs to be cleared in spectre_v2_determine_rsb_fill_type_at_vmexit() 1598 * user-space-poisoned RSB entries. in spectre_v2_determine_rsb_fill_type_at_vmexit() 1600 * eIBRS should protect against RSB poisoning, but if the EIBRS_PBRSB in spectre_v2_determine_rsb_fill_type_at_vmexit() [all …]
|
/linux/arch/x86/include/asm/ |
H A D | nospec-branch.h | 18 * Call depth tracking for Intel SKL CPUs to address the RSB underflow 49 * but there is still a cushion vs. the RSB depth. The algorithm does not 108 * Each entry in the RSB, if used for a speculative 'ret', contains an 113 * eliminate potentially bogus entries from the RSB, and sometimes 135 * Stuff the entire RSB. 167 * Stuff a single RSB slot. 169 * To mitigate Post-Barrier RSB speculation, one CALL instruction must be
|
/linux/arch/arm/lib/ |
H A D | copy_template.S | 90 CALGN( rsb r3, ip, #32 ) 113 rsb ip, ip, #32 163 9: rsb ip, ip, #4 189 CALGN( rsb ip, ip, #32 )
|
H A D | findbit.S | 113 rsb r0, r3, #0 116 rsb r3, r3, #31 @ offset of first set bit
|
H A D | div64.S | 153 rsb ip, ip, #31 179 rsb ip, ip, #32
|
H A D | memmove.S | 60 CALGN( rsb ip, ip, #32 ) 79 rsb ip, ip, #32
|
/linux/Documentation/admin-guide/hw-vuln/ |
H A D | cross-thread-rsb.rst | 69 context switch fills the RAP entries (referred to as the RSB in Linux) with safe 80 Use existing Spectre v2 mitigations that will fill the RSB on context switch.
|
H A D | index.rst | 21 cross-thread-rsb
|
/linux/arch/x86/kvm/svm/ |
H A D | vmenter.S | 51 * IMPORTANT: To avoid RSB underflow attacks and any other nastiness, 212 /* IMPORTANT: Stuff the RSB immediately after VM-Exit, before RET! */ 349 /* IMPORTANT: Stuff the RSB immediately after VM-Exit, before RET! */
|
/linux/drivers/pinctrl/sunxi/ |
H A D | pinctrl-suniv-f1c100s.c | 121 SUNXI_FUNCTION(0x4, "rsb"), /* SDA */ 194 SUNXI_FUNCTION(0x4, "rsb"), /* SCK */ 282 SUNXI_FUNCTION(0x5, "rsb"), /* SCK */ 290 SUNXI_FUNCTION(0x5, "rsb"), /* SDA */
|