| /openbmc/u-boot/drivers/spi/ |
| H A D | atcspi200_spi.c | 93 static int __atcspi200_spi_set_speed(struct nds_spi_slave *ns) in __atcspi200_spi_set_speed() argument 97 tm = ns->regs->timing; in __atcspi200_spi_set_speed() 100 if(ns->freq >= ns->clock) in __atcspi200_spi_set_speed() 104 if (ns->freq >= ns->clock / (2 * (div + 1))) in __atcspi200_spi_set_speed() 110 ns->regs->timing = tm; in __atcspi200_spi_set_speed() 116 static int __atcspi200_spi_claim_bus(struct nds_spi_slave *ns) in __atcspi200_spi_claim_bus() argument 119 ns->regs->ctrl |= (TXFRST|RXFRST|SPIRST); in __atcspi200_spi_claim_bus() 120 while((ns->regs->ctrl &(TXFRST|RXFRST|SPIRST))&&(ns->to--)) in __atcspi200_spi_claim_bus() 121 if(!ns->to) in __atcspi200_spi_claim_bus() 124 ns->cmd_len = 0; in __atcspi200_spi_claim_bus() [all …]
|
| /openbmc/u-boot/arch/arm/dts/ |
| H A D | omap-gpmc-smsc911x.dtsi | 30 gpmc,cs-on-ns = <5>; 31 gpmc,cs-rd-off-ns = <150>; 32 gpmc,cs-wr-off-ns = <150>; 33 gpmc,adv-on-ns = <0>; 34 gpmc,adv-rd-off-ns = <15>; 35 gpmc,adv-wr-off-ns = <40>; 36 gpmc,oe-on-ns = <45>; 37 gpmc,oe-off-ns = <140>; 38 gpmc,we-on-ns = <45>; 39 gpmc,we-off-ns = <140>; [all …]
|
| H A D | omap-gpmc-smsc9221.dtsi | 32 gpmc,cs-on-ns = <0>; 33 gpmc,cs-rd-off-ns = <42>; 34 gpmc,cs-wr-off-ns = <36>; 35 gpmc,adv-on-ns = <6>; 36 gpmc,adv-rd-off-ns = <12>; 37 gpmc,adv-wr-off-ns = <12>; 38 gpmc,oe-on-ns = <0>; 39 gpmc,oe-off-ns = <42>; 40 gpmc,we-on-ns = <0>; 41 gpmc,we-off-ns = <36>; [all …]
|
| H A D | omap3-igep.dtsi | 123 gpmc,cs-on-ns = <0>; 124 gpmc,cs-rd-off-ns = <44>; 125 gpmc,cs-wr-off-ns = <44>; 126 gpmc,adv-on-ns = <6>; 127 gpmc,adv-rd-off-ns = <34>; 128 gpmc,adv-wr-off-ns = <44>; 129 gpmc,we-off-ns = <40>; 130 gpmc,oe-off-ns = <54>; 131 gpmc,access-ns = <64>; 132 gpmc,rd-cycle-ns = <82>; [all …]
|
| H A D | am335x-draco.dtsi | 137 gpmc,cs-on-ns = <0>; 138 gpmc,cs-rd-off-ns = <44>; 139 gpmc,cs-wr-off-ns = <44>; 140 gpmc,adv-on-ns = <6>; 141 gpmc,adv-rd-off-ns = <34>; 142 gpmc,adv-wr-off-ns = <44>; 143 gpmc,we-on-ns = <0>; 144 gpmc,we-off-ns = <40>; 145 gpmc,oe-on-ns = <0>; 146 gpmc,oe-off-ns = <54>; [all …]
|
| H A D | omap3-evm.dts | 72 gpmc,cs-on-ns = <0>; 73 gpmc,cs-rd-off-ns = <44>; 74 gpmc,cs-wr-off-ns = <44>; 75 gpmc,adv-on-ns = <6>; 76 gpmc,adv-rd-off-ns = <34>; 77 gpmc,adv-wr-off-ns = <44>; 78 gpmc,we-off-ns = <40>; 79 gpmc,oe-off-ns = <54>; 80 gpmc,access-ns = <64>; 81 gpmc,rd-cycle-ns = <82>; [all …]
|
| H A D | dm8168-evm.dts | 101 gpmc,cs-on-ns = <0>; 102 gpmc,cs-rd-off-ns = <44>; 103 gpmc,cs-wr-off-ns = <44>; 104 gpmc,adv-on-ns = <6>; 105 gpmc,adv-rd-off-ns = <34>; 106 gpmc,adv-wr-off-ns = <44>; 107 gpmc,we-on-ns = <0>; 108 gpmc,we-off-ns = <40>; 109 gpmc,oe-on-ns = <0>; 110 gpmc,oe-off-ns = <54>; [all …]
|
| H A D | am335x-chilisom.dtsi | 159 gpmc,cs-on-ns = <0>; 160 gpmc,cs-rd-off-ns = <44>; 161 gpmc,cs-wr-off-ns = <44>; 162 gpmc,adv-on-ns = <6>; 163 gpmc,adv-rd-off-ns = <34>; 164 gpmc,adv-wr-off-ns = <44>; 165 gpmc,we-on-ns = <0>; 166 gpmc,we-off-ns = <40>; 167 gpmc,oe-on-ns = <0>; 168 gpmc,oe-off-ns = <54>; [all …]
|
| H A D | omap3-evm-37xx.dts | 72 gpmc,cs-on-ns = <0>; 73 gpmc,cs-rd-off-ns = <44>; 74 gpmc,cs-wr-off-ns = <44>; 75 gpmc,adv-on-ns = <6>; 76 gpmc,adv-rd-off-ns = <34>; 77 gpmc,adv-wr-off-ns = <44>; 78 gpmc,we-off-ns = <40>; 79 gpmc,oe-off-ns = <54>; 80 gpmc,access-ns = <64>; 81 gpmc,rd-cycle-ns = <82>; [all …]
|
| H A D | am335x-igep0033.dtsi | 143 gpmc,cs-on-ns = <0>; 144 gpmc,cs-rd-off-ns = <44>; 145 gpmc,cs-wr-off-ns = <44>; 146 gpmc,adv-on-ns = <6>; 147 gpmc,adv-rd-off-ns = <34>; 148 gpmc,adv-wr-off-ns = <44>; 149 gpmc,we-on-ns = <0>; 150 gpmc,we-off-ns = <40>; 151 gpmc,oe-on-ns = <0>; 152 gpmc,oe-off-ns = <54>; [all …]
|
| H A D | am335x-brppt1-nand.dts | 306 gpmc,cs-on-ns = <0>; 307 gpmc,cs-rd-off-ns = <44>; 308 gpmc,cs-wr-off-ns = <44>; 309 gpmc,adv-on-ns = <6>; 310 gpmc,adv-rd-off-ns = <34>; 311 gpmc,adv-wr-off-ns = <44>; 312 gpmc,we-on-ns = <0>; 313 gpmc,we-off-ns = <40>; 314 gpmc,oe-on-ns = <0>; 315 gpmc,oe-off-ns = <54>; [all …]
|
| H A D | logicpd-torpedo-som.dtsi | 56 gpmc,cs-on-ns = <0>; 57 gpmc,cs-rd-off-ns = <44>; 58 gpmc,cs-wr-off-ns = <44>; 59 gpmc,adv-on-ns = <6>; 60 gpmc,adv-rd-off-ns = <34>; 61 gpmc,adv-wr-off-ns = <44>; 62 gpmc,we-off-ns = <40>; 63 gpmc,oe-off-ns = <54>; 64 gpmc,access-ns = <64>; 65 gpmc,rd-cycle-ns = <82>; [all …]
|
| H A D | am3517-som.dtsi | 55 gpmc,cs-on-ns = <0>; 56 gpmc,cs-rd-off-ns = <44>; 57 gpmc,cs-wr-off-ns = <44>; 58 gpmc,adv-on-ns = <6>; 59 gpmc,adv-rd-off-ns = <34>; 60 gpmc,adv-wr-off-ns = <44>; 61 gpmc,we-off-ns = <40>; 62 gpmc,oe-off-ns = <54>; 63 gpmc,access-ns = <64>; 64 gpmc,rd-cycle-ns = <82>; [all …]
|
| H A D | am335x-baltos.dts | 191 gpmc,cs-on-ns = <0>; 192 gpmc,cs-rd-off-ns = <44>; 193 gpmc,cs-wr-off-ns = <44>; 194 gpmc,adv-on-ns = <6>; 195 gpmc,adv-rd-off-ns = <34>; 196 gpmc,adv-wr-off-ns = <44>; 197 gpmc,we-on-ns = <0>; 198 gpmc,we-off-ns = <40>; 199 gpmc,oe-on-ns = <0>; 200 gpmc,oe-off-ns = <54>; [all …]
|
| /openbmc/qemu/hw/nvme/ |
| 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() 63 static void nvme_dif_pract_generate_dif_crc16(NvmeNamespace *ns, uint8_t *buf, in nvme_dif_pract_generate_dif_crc16() argument 71 if (!(ns->id_ns.dps & NVME_ID_NS_DPS_FIRST_EIGHT)) { in nvme_dif_pract_generate_dif_crc16() 72 pil = ns->lbaf.ms - nvme_pi_tuple_size(ns); in nvme_dif_pract_generate_dif_crc16() 75 trace_pci_nvme_dif_pract_generate_dif_crc16(len, ns->lbasz, in nvme_dif_pract_generate_dif_crc16() 76 ns->lbasz + pil, apptag, in nvme_dif_pract_generate_dif_crc16() 79 for (; buf < end; buf += ns->lbasz, mbuf += ns->lbaf.ms) { in nvme_dif_pract_generate_dif_crc16() [all …]
|
| H A D | dif.h | 173 static inline size_t nvme_pi_tuple_size(NvmeNamespace *ns) in nvme_pi_tuple_size() argument 175 return ns->pif ? 16 : 8; in nvme_pi_tuple_size() 178 uint16_t nvme_check_prinfo(NvmeNamespace *ns, uint8_t prinfo, uint64_t slba, 180 uint16_t nvme_dif_mangle_mdata(NvmeNamespace *ns, uint8_t *mbuf, size_t mlen, 182 void nvme_dif_pract_generate_dif(NvmeNamespace *ns, uint8_t *buf, size_t len, 185 uint16_t nvme_dif_check(NvmeNamespace *ns, uint8_t *buf, size_t len,
|
| /openbmc/qemu/hw/core/ |
| H A D | nmi.c | 34 static void nmi_children(Object *o, struct do_nmi_s *ns); 38 struct do_nmi_s *ns = opaque; in do_nmi() local 44 ns->handled = true; in do_nmi() 45 nc->nmi_monitor_handler(n, ns->cpu_index, &ns->err); in do_nmi() 46 if (ns->err) { in do_nmi() 50 nmi_children(o, ns); in do_nmi() 55 static void nmi_children(Object *o, struct do_nmi_s *ns) in nmi_children() argument 57 object_child_foreach(o, do_nmi, ns); in nmi_children() 62 struct do_nmi_s ns = { in nmi_monitor_handle() local 68 nmi_children(object_get_root(), &ns); in nmi_monitor_handle() [all …]
|
| /openbmc/u-boot/drivers/nvme/ |
| H A D | nvme_show.c | 64 static void print_formats(struct nvme_id_ns *id, struct nvme_ns *ns) in print_formats() argument 68 printf("Blk device %d: LBA Format Support:\n", ns->devnum); in print_formats() 72 if (i == ns->flbas) in print_formats() 107 struct nvme_ns *ns = dev_get_priv(udev); in nvme_print_info() local 108 struct nvme_dev *dev = ns->dev; in nvme_print_info() 117 print_optional_admin_cmd(le16_to_cpu(ctrl->oacs), ns->devnum); in nvme_print_info() 118 print_optional_nvm_cmd(le16_to_cpu(ctrl->oncs), ns->devnum); in nvme_print_info() 119 print_format_nvme_attributes(ctrl->fna, ns->devnum); in nvme_print_info() 121 if (nvme_identify(dev, ns->ns_id, 0, (dma_addr_t)id)) in nvme_print_info() 124 print_formats(id, ns); in nvme_print_info() [all …]
|
| /openbmc/u-boot/arch/m68k/include/asm/ |
| H A D | io.h | 46 #define insb(port, buf, ns) _insb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument 47 #define outsb(port, buf, ns) _outsb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument 48 #define insw(port, buf, ns) _insw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument 49 #define outsw(port, buf, ns) _outsw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument 69 static inline void _insb(volatile u8 * port, void *buf, int ns) in _insb() argument 72 while (ns--) in _insb() 76 static inline void _outsb(volatile u8 * port, const void *buf, int ns) in _outsb() argument 79 while (ns--) in _outsb() 83 static inline void _insw(volatile u16 * port, void *buf, int ns) in _insw() argument 86 while (ns--) in _insw() [all …]
|
| /openbmc/u-boot/drivers/core/ |
| H A D | of_addr.c | 19 #define OF_CHECK_COUNTS(na, ns) (OF_CHECK_ADDR_COUNT(na) && (ns) > 0) argument 43 u64 (*map)(__be32 *addr, const __be32 *range, int na, int ns, int pna); 58 int na, int ns, int pna) in of_bus_default_map() argument 63 s = of_read_number(range + na + pna, ns); in of_bus_default_map() 131 int onesize, i, na, ns; in of_get_address() local 137 dev_count_cells(dev, &na, &ns); in of_get_address() 139 bus->count_cells(dev, &na, &ns); in of_get_address() 150 onesize = na + ns; in of_get_address() 154 *size = of_read_number(prop + na, ns); in of_get_address() 170 __be32 *addr, int na, int ns, int pna, in of_translate_one() argument [all …]
|
| H A D | fdtaddr.c | 27 int na, ns; in devfdt_get_addr_index() local 36 ns = fdt_size_cells(gd->fdt_blob, dev_of_offset(dev->parent)); in devfdt_get_addr_index() 37 if (ns < 0) { in devfdt_get_addr_index() 44 if (!reg || (len <= (index * sizeof(fdt32_t) * (na + ns)))) { in devfdt_get_addr_index() 49 reg += index * (na + ns); in devfdt_get_addr_index() 51 if (ns) { in devfdt_get_addr_index()
|
| /openbmc/qemu/include/hw/ |
| H A D | clock.h | 53 #define CLOCK_PERIOD_FROM_NS(ns) ((ns) * (CLOCK_PERIOD_1SEC / 1000000000llu)) argument 187 static inline bool clock_set_ns(Clock *clk, unsigned ns) in clock_set_ns() argument 189 return clock_set(clk, CLOCK_PERIOD_FROM_NS(ns)); in clock_set_ns() 225 static inline void clock_update_ns(Clock *clk, unsigned ns) in clock_update_ns() argument 227 clock_update(clk, CLOCK_PERIOD_FROM_NS(ns)); in clock_update_ns() 305 static inline uint64_t clock_ns_to_ticks(const Clock *clk, uint64_t ns) in clock_ns_to_ticks() argument 313 uint64_t lo = ns << 32; in clock_ns_to_ticks() 314 uint64_t hi = ns >> 32; in clock_ns_to_ticks()
|
| /openbmc/openbmc/poky/bitbake/lib/bs4/ |
| H A D | formatter.py | 101 def substitute(self, ns): argument 111 return ns 113 if (isinstance(ns, NavigableString) 114 and ns.parent is not None 115 and ns.parent.name in self.cdata_containing_tags): 117 return ns 119 return self.entity_substitution(ns)
|
| /openbmc/u-boot/arch/powerpc/include/asm/ |
| H A D | io.h | 43 #define insb(port, buf, ns) _insb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument 44 #define outsb(port, buf, ns) _outsb((u8 *)((port)+_IO_BASE), (buf), (ns)) argument 45 #define insw(port, buf, ns) _insw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument 46 #define outsw(port, buf, ns) _outsw_ns((u16 *)((port)+_IO_BASE), (buf), (ns)) argument 71 extern void _insb(volatile u8 *port, void *buf, int ns); 72 extern void _outsb(volatile u8 *port, const void *buf, int ns); 73 extern void _insw(volatile u16 *port, void *buf, int ns); 74 extern void _outsw(volatile u16 *port, const void *buf, int ns); 77 extern void _insw_ns(volatile u16 *port, void *buf, int ns); 78 extern void _outsw_ns(volatile u16 *port, const void *buf, int ns); [all …]
|
| /openbmc/qemu/target/s390x/tcg/ |
| H A D | s390-tod.h | 18 static inline uint64_t time2tod(uint64_t ns) in time2tod() argument 20 return (ns << 9) / 125 + (((ns & 0xff80000000000000ull) / 125) << 9); in time2tod()
|