/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | nandsim.c | 9 * Note: NS means "NAND Simulator". 42 #define CONFIG_NANDSIM_FIRST_ID_BYTE 0x98 43 #define CONFIG_NANDSIM_SECOND_ID_BYTE 0x39 44 #define CONFIG_NANDSIM_THIRD_ID_BYTE 0xFF /* No byte */ 45 #define CONFIG_NANDSIM_FOURTH_ID_BYTE 0xFF /* No byte */ 67 #define CONFIG_NANDSIM_DO_DELAYS 0 70 #define CONFIG_NANDSIM_LOG 0 73 #define CONFIG_NANDSIM_DBG 0 93 static unsigned int bitflips = 0; 95 static unsigned int overridesize = 0; [all …]
|
/openbmc/qemu/hw/nvme/ |
H A D | ns.c | 30 void nvme_ns_init_format(NvmeNamespace *ns) in nvme_ns_init_format() argument 32 NvmeIdNs *id_ns = &ns->id_ns; in nvme_ns_init_format() 33 NvmeIdNsNvm *id_ns_nvm = &ns->id_ns_nvm; in nvme_ns_init_format() 38 ns->lbaf = id_ns->lbaf[NVME_ID_NS_FLBAS_INDEX(id_ns->flbas)]; in nvme_ns_init_format() 39 ns->lbasz = 1 << ns->lbaf.ds; in nvme_ns_init_format() 41 nlbas = ns->size / (ns->lbasz + ns->lbaf.ms); in nvme_ns_init_format() 49 ns->moff = nlbas << ns->lbaf.ds; in nvme_ns_init_format() 51 npdg = ns->blkconf.discard_granularity / ns->lbasz; in nvme_ns_init_format() 53 ret = bdrv_get_info(blk_bs(ns->blkconf.blk), &bdi); in nvme_ns_init_format() 54 if (ret >= 0 && bdi.cluster_size > ns->blkconf.discard_granularity) { in nvme_ns_init_format() [all …]
|
H A D | dif.c | 19 uint16_t nvme_check_prinfo(NvmeNamespace *ns, uint8_t prinfo, uint64_t slba, in nvme_check_prinfo() argument 22 uint64_t mask = ns->pif ? 0xffffffffffff : 0xffffffff; in nvme_check_prinfo() 24 if ((NVME_ID_NS_DPS_TYPE(ns->id_ns.dps) == NVME_ID_NS_DPS_TYPE_1) && in nvme_check_prinfo() 29 if ((NVME_ID_NS_DPS_TYPE(ns->id_ns.dps) == NVME_ID_NS_DPS_TYPE_3) && in nvme_check_prinfo() 43 for (i = 0; i < len; i++) { in crc16_t10dif() 44 crc = (crc << 8) ^ crc16_t10dif_table[((crc >> 8) ^ buffer[i]) & 0xff]; in crc16_t10dif() 56 for (i = 0; i < len; i++) { in crc64_nvme() 57 crc = (crc >> 8) ^ crc64_nvme_table[(crc & 0xff) ^ buffer[i]]; in crc64_nvme() 60 return crc ^ (uint64_t)~0; in crc64_nvme() 63 static void nvme_dif_pract_generate_dif_crc16(NvmeNamespace *ns, uint8_t *buf, in nvme_dif_pract_generate_dif_crc16() argument [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | atcspi200_spi.c | 20 #define SPI_TIMEOUT 0x100000 21 #define SPI0_BUS 0 23 #define SPI0_BASE 0xf0b00000 24 #define SPI1_BASE 0xf0f00000 30 u32 format; /* 0x10 */ 34 u32 tctrl; /* 0x20 */ 36 #define TRAMODE_MASK (0x0F<<TRAMODE_OFFSET) 37 #define TRAMODE_WR_SYNC (0<<TRAMODE_OFFSET) 48 #define WCNT_MASK (0x1FF<<WCNT_OFFSET) 49 #define RCNT_OFFSET 0 [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | fib_offload_lib.sh | 7 local ns=$1; shift 13 ip -n $ns -j -p -$family route show $route \ 17 if [[ $ret -ne 0 ]]; then 18 return 0 29 local ns=$1; shift 34 busywait 5000 __fib_trap_check $ns $family "$route" $should_fail 39 local ns=$1; shift 43 fib_trap_check $ns 4 "$route" $should_fail 48 local ns=$1; shift 52 fib_trap_check $ns 6 "$route" $should_fail [all …]
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap3430-sdp.dts | 15 reg = <0x80000000 0x10000000>; /* 256 MB */ 23 reg = <0x48>; 50 ranges = <0 0 0x10000000 0x08000000>, 51 <1 0 0x28000000 0x1000000>, /* CS1: 16MB for NAND */ 52 <2 0 0x20000000 0x1000000>; /* CS2: 16MB for OneNAND */ 54 nor@0,0 { 59 reg = <0 0 0x08000000>; 63 gpmc,cs-on-ns = <0>; 64 gpmc,cs-rd-off-ns = <186>; 65 gpmc,cs-wr-off-ns = <186>; [all …]
|
H A D | omap2430-sdp.dts | 15 reg = <0x80000000 0x8000000>; /* 128 MB */ 23 reg = <0x48>; 36 ranges = <5 0 0x08000000 0x01000000>; 41 reg = <5 0x300 0xf>; 43 gpmc,sync-clk-ps = <0>; 48 gpmc,cs-on-ns = <6>; 49 gpmc,cs-rd-off-ns = <187>; 50 gpmc,cs-wr-off-ns = <187>; 51 gpmc,adv-on-ns = <18>; 52 gpmc,adv-rd-off-ns = <48>; [all …]
|
H A D | omap3-igep.dtsi | 15 reg = <0x80000000 0x20000000>; /* 512 MB */ 40 … OMAP3_CORE1_IOPAD(0x20be, PIN_INPUT | MUX_MODE0) /* gpmc_clk.gpmc_clk */ 46 OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */ 47 OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_tx */ 53 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */ 54 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */ 60 OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx.mcbsp2_fsx */ 61 OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx.mcbsp2_clkx */ 62 OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr.mcbsp2.dr */ 63 OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx.mcbsp2_dx */ [all …]
|
H A D | omap3-overo-tobiduo-common.dtsi | 16 reg = <5 0 0xff>; 21 smsc2: ethernet@4,0 { 25 gpmc,mux-add-data = <0>; 26 gpmc,cs-on-ns = <0>; 27 gpmc,cs-rd-off-ns = <42>; 28 gpmc,cs-wr-off-ns = <36>; 29 gpmc,adv-on-ns = <6>; 30 gpmc,adv-rd-off-ns = <12>; 31 gpmc,adv-wr-off-ns = <12>; 32 gpmc,oe-on-ns = <0>; [all …]
|
/openbmc/linux/drivers/net/netdevsim/ |
H A D | ethtool.c | 14 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pause_stats() local 16 if (ns->ethtool.pauseparam.report_stats_rx) in nsim_get_pause_stats() 18 if (ns->ethtool.pauseparam.report_stats_tx) in nsim_get_pause_stats() 25 struct netdevsim *ns = netdev_priv(dev); in nsim_get_pauseparam() local 27 pause->autoneg = 0; /* We don't support ksettings, so can't pretend */ in nsim_get_pauseparam() 28 pause->rx_pause = ns->ethtool.pauseparam.rx; in nsim_get_pauseparam() 29 pause->tx_pause = ns->ethtool.pauseparam.tx; in nsim_get_pauseparam() 35 struct netdevsim *ns = netdev_priv(dev); in nsim_set_pauseparam() local 40 ns->ethtool.pauseparam.rx = pause->rx_pause; in nsim_set_pauseparam() 41 ns->ethtool.pauseparam.tx = pause->tx_pause; in nsim_set_pauseparam() [all …]
|
H A D | netdev.c | 31 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() local 33 if (!nsim_ipsec_tx(ns, skb)) in nsim_start_xmit() 36 u64_stats_update_begin(&ns->syncp); in nsim_start_xmit() 37 ns->tx_packets++; in nsim_start_xmit() 38 ns->tx_bytes += skb->len; in nsim_start_xmit() 39 u64_stats_update_end(&ns->syncp); in nsim_start_xmit() 53 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu() local 55 if (ns->xdp.prog && new_mtu > NSIM_XDP_MAX_MTU) in nsim_change_mtu() 60 return 0; in nsim_change_mtu() 66 struct netdevsim *ns = netdev_priv(dev); in nsim_get_stats64() local [all …]
|
H A D | udp_tunnels.c | 15 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_set_port() local 18 ret = -ns->udp_ports.inject_error; in nsim_udp_tunnel_set_port() 19 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_set_port() 21 if (ns->udp_ports.sleep) in nsim_udp_tunnel_set_port() 22 msleep(ns->udp_ports.sleep); in nsim_udp_tunnel_set_port() 25 if (ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_set_port() 29 ns->udp_ports.ports[table][entry] = in nsim_udp_tunnel_set_port() 44 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_unset_port() local 47 ret = -ns->udp_ports.inject_error; in nsim_udp_tunnel_unset_port() 48 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_unset_port() [all …]
|
H A D | bpf.c | 41 struct netdevsim *ns; member 58 return 0; in nsim_bpf_string_show() 66 int ret = 0; in nsim_bpf_verify_insn() 84 return 0; in nsim_bpf_finalize() 87 static bool nsim_xdp_offload_active(struct netdevsim *ns) in nsim_xdp_offload_active() argument 89 return ns->xdp_hw.prog; in nsim_xdp_offload_active() 104 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload() argument 106 nsim_prog_set_loaded(ns->bpf_offloaded, false); in nsim_bpf_offload() 108 WARN(!!ns->bpf_offloaded != oldprog, in nsim_bpf_offload() 111 ns->bpf_offloaded = prog; in nsim_bpf_offload() [all …]
|
H A D | macsec.c | 11 static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci) in nsim_macsec_find_secy() argument 15 for (i = 0; i < NSIM_MACSEC_MAX_SECY_COUNT; i++) { in nsim_macsec_find_secy() 16 if (ns->macsec.nsim_secy[i].sci == sci) in nsim_macsec_find_secy() 27 for (i = 0; i < NSIM_MACSEC_MAX_RXSC_COUNT; i++) { in nsim_macsec_find_rxsc() 37 struct netdevsim *ns = netdev_priv(ctx->netdev); in nsim_macsec_add_secy() local 40 if (ns->macsec.nsim_secy_count == NSIM_MACSEC_MAX_SECY_COUNT) in nsim_macsec_add_secy() 43 for (idx = 0; idx < NSIM_MACSEC_MAX_SECY_COUNT; idx++) { in nsim_macsec_add_secy() 44 if (!ns->macsec.nsim_secy[idx].used) in nsim_macsec_add_secy() 56 ns->macsec.nsim_secy[idx].used = true; in nsim_macsec_add_secy() 57 ns->macsec.nsim_secy[idx].nsim_rxsc_count = 0; in nsim_macsec_add_secy() [all …]
|
/openbmc/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra30-cpu-opp.dtsi | 9 clock-latency-ns = <100000>; 10 opp-supported-hw = <0x1F 0x31FE>; 15 clock-latency-ns = <100000>; 16 opp-supported-hw = <0x1F 0x0C01>; 21 clock-latency-ns = <100000>; 22 opp-supported-hw = <0x1F 0x0200>; 27 clock-latency-ns = <100000>; 28 opp-supported-hw = <0x1F 0x31FE>; 33 clock-latency-ns = <100000>; 34 opp-supported-hw = <0x1F 0x0C01>; [all …]
|
H A D | tegra20-cpu-opp.dtsi | 9 clock-latency-ns = <400000>; 10 opp-supported-hw = <0x0F 0x0003>; 16 clock-latency-ns = <400000>; 17 opp-supported-hw = <0x0F 0x0004>; 23 clock-latency-ns = <400000>; 24 opp-supported-hw = <0x0F 0x0003>; 29 clock-latency-ns = <400000>; 30 opp-supported-hw = <0x0F 0x0004>; 35 clock-latency-ns = <400000>; 36 opp-supported-hw = <0x0C 0x0003>; [all …]
|
/openbmc/linux/drivers/nvme/host/ |
H A D | zns.c | 10 int nvme_revalidate_zones(struct nvme_ns *ns) in nvme_revalidate_zones() argument 12 struct request_queue *q = ns->queue; in nvme_revalidate_zones() 14 blk_queue_chunk_sectors(q, ns->zsze); in nvme_revalidate_zones() 15 blk_queue_max_zone_append_sectors(q, ns->ctrl->max_zone_append); in nvme_revalidate_zones() 17 return blk_revalidate_disk_zones(ns->disk, NULL); in nvme_revalidate_zones() 45 return 0; in nvme_set_max_append() 48 int nvme_update_zone_info(struct nvme_ns *ns, unsigned lbaf) in nvme_update_zone_info() argument 50 struct nvme_effects_log *log = ns->head->effects; in nvme_update_zone_info() 51 struct request_queue *q = ns->queue; in nvme_update_zone_info() 59 if (test_and_clear_bit(NVME_NS_FORCE_RO, &ns->flags)) in nvme_update_zone_info() [all …]
|
/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
H A D | gate.json | 12 0, 17 … "cmdUnderTest": "$TC action add action gate priority 1 sched-entry close 100000000ns index 100", 18 "expExitCode": "0", 20 "matchPattern": "action order [0-9]*: .*priority 1.*index 100 ref", 36 0, 41 …derTest": "$TC action add action gate base-time 200000000000ns sched-entry close 100000000ns index… 42 "expExitCode": "0", 44 "matchPattern": "action order [0-9]*: .*base-time 200s.*index 10 ref", 60 0, 65 …erTest": "$TC action add action gate cycle-time 200000000000ns sched-entry close 100000000ns index… [all …]
|
/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_state.c | 26 union drbd_state ns; member 49 *n_devices = 0; in count_objects() 50 *n_connections = 0; in count_objects() 76 for (n = 0; n < n_devices; n++) in alloc_state_change() 78 for (n = 0; n < n_connections; n++) in alloc_state_change() 164 resource_state_change = &state_change->resource[0]; in remember_new_state() 173 for (n = 0; n < state_change->n_devices; n++) { in remember_new_state() 181 for (n = 0; n < state_change->n_connections; n++) { in remember_new_state() 192 for (n = 0; n < state_change->n_devices * state_change->n_connections; n++) { in remember_new_state() 213 struct drbd_resource_state_change *resource_state_change = &state_change->resource[0]; in copy_old_to_new_state_change() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8996pro.dtsi | 14 * nibble of supported hw, so speed bin 0 becomes 0x10, speed bin 1 15 * becomes 0x20, speed 2 becomes 0x40. 25 opp-supported-hw = <0x70>; 26 clock-latency-ns = <200000>; 31 opp-supported-hw = <0x70>; 32 clock-latency-ns = <200000>; 37 opp-supported-hw = <0x70>; 38 clock-latency-ns = <200000>; 43 opp-supported-hw = <0x70>; 44 clock-latency-ns = <200000>; [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | omap3-igep.dtsi | 18 reg = <0x80000000 0x20000000>; /* 512 MB */ 43 … OMAP3_CORE1_IOPAD(0x20be, PIN_INPUT | MUX_MODE0) /* gpmc_clk.gpmc_clk */ 49 OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */ 50 OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_tx */ 56 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */ 57 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */ 63 OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx.mcbsp2_fsx */ 64 OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx.mcbsp2_clkx */ 65 OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr.mcbsp2.dr */ 66 OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx.mcbsp2_dx */ [all …]
|
/openbmc/linux/drivers/nvme/target/ |
H A D | io-cmd-file.c | 16 void nvmet_file_ns_revalidate(struct nvmet_ns *ns) in nvmet_file_ns_revalidate() argument 18 ns->size = i_size_read(ns->file->f_mapping->host); in nvmet_file_ns_revalidate() 21 void nvmet_file_ns_disable(struct nvmet_ns *ns) in nvmet_file_ns_disable() argument 23 if (ns->file) { in nvmet_file_ns_disable() 24 if (ns->buffered_io) in nvmet_file_ns_disable() 26 mempool_destroy(ns->bvec_pool); in nvmet_file_ns_disable() 27 ns->bvec_pool = NULL; in nvmet_file_ns_disable() 28 fput(ns->file); in nvmet_file_ns_disable() 29 ns->file = NULL; in nvmet_file_ns_disable() 33 int nvmet_file_ns_enable(struct nvmet_ns *ns) in nvmet_file_ns_enable() argument [all …]
|
H A D | io-cmd-bdev.c | 15 /* Logical blocks per physical block, 0's based. */ in nvmet_bdev_set_limits() 38 /* NPWG = Namespace Preferred Write Granularity. 0's based */ in nvmet_bdev_set_limits() 40 /* NPWA = Namespace Preferred Write Alignment. 0's based */ in nvmet_bdev_set_limits() 42 /* NPDG = Namespace Preferred Deallocate Granularity. 0's based */ in nvmet_bdev_set_limits() 51 void nvmet_bdev_ns_disable(struct nvmet_ns *ns) in nvmet_bdev_ns_disable() argument 53 if (ns->bdev) { in nvmet_bdev_ns_disable() 54 blkdev_put(ns->bdev, NULL); in nvmet_bdev_ns_disable() 55 ns->bdev = NULL; in nvmet_bdev_ns_disable() 59 static void nvmet_bdev_ns_enable_integrity(struct nvmet_ns *ns) in nvmet_bdev_ns_enable_integrity() argument 61 struct blk_integrity *bi = bdev_get_integrity(ns->bdev); in nvmet_bdev_ns_enable_integrity() [all …]
|
/openbmc/linux/kernel/time/ |
H A D | namespace.c | 49 tim = 0; in do_timens_ktime_to_host() 59 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) in inc_time_namespaces() argument 61 return inc_ucount(ns, current_euid(), UCOUNT_TIME_NAMESPACES); in inc_time_namespaces() 81 struct time_namespace *ns; in clone_time_ns() local 91 ns = kmalloc(sizeof(*ns), GFP_KERNEL_ACCOUNT); in clone_time_ns() 92 if (!ns) in clone_time_ns() 95 refcount_set(&ns->ns.count, 1); in clone_time_ns() 97 ns->vvar_page = alloc_page(GFP_KERNEL_ACCOUNT | __GFP_ZERO); in clone_time_ns() 98 if (!ns->vvar_page) in clone_time_ns() 101 err = ns_alloc_inum(&ns->ns); in clone_time_ns() [all …]
|
/openbmc/u-boot/board/xes/xpedite537x/ |
H A D | ddr.c | 46 * Minimum chip delay (Ch 0): 1.372ns 47 * Maximum chip delay (Ch 0): 2.914ns 48 * Minimum chip delay (Ch 1): 1.220ns 49 * Maximum chip delay (Ch 1): 2.595ns 51 * CLK adjust = 5 (from simulations) = 5/8* 3.33ns = 2080ps 53 * Minimum delay calc (Ch 0): 57 * = 3.808ns 59 * Maximum delay calc (Ch 0): 63 * = 6.240ns 69 * = 3.288ns [all …]
|