Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 182) sorted by relevance

12345678

/openbmc/qemu/hw/nvme/
H A Dns.c30 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()
39 ns->lbaf = id_ns->lbaf[NVME_ID_NS_FLBAS_INDEX(id_ns->flbas)]; in nvme_ns_init_format()
40 ns->lbasz = 1 << ns->lbaf.ds; in nvme_ns_init_format()
41 ns->pif = NVME_ID_NS_NVM_ELBAF_PIF(ns->id_ns_nvm.elbaf[index]); in nvme_ns_init_format()
43 nlbas = ns->size / (ns->lbasz + ns->lbaf.ms); in nvme_ns_init_format()
51 ns->moff = nlbas << ns->lbaf.ds; in nvme_ns_init_format()
53 npdg = ns->blkconf.discard_granularity / ns->lbasz; in nvme_ns_init_format()
55 ret = bdrv_get_info(blk_bs(ns->blkconf.blk), &bdi); in nvme_ns_init_format()
[all …]
H A Ddif.c19 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 Dnvme.h298 static inline uint32_t nvme_nsid(NvmeNamespace *ns) in nvme_nsid() argument
300 if (ns) { in nvme_nsid()
301 return ns->params.nsid; in nvme_nsid()
307 static inline size_t nvme_l2b(NvmeNamespace *ns, uint64_t lba) in nvme_l2b() argument
309 return lba << ns->lbaf.ds; in nvme_l2b()
312 static inline size_t nvme_m2b(NvmeNamespace *ns, uint64_t lba) in nvme_m2b() argument
314 return ns->lbaf.ms * lba; in nvme_m2b()
317 static inline int64_t nvme_moff(NvmeNamespace *ns, uint64_t lba) in nvme_moff() argument
319 return ns->moff + nvme_m2b(ns, lba); in nvme_moff()
322 static inline bool nvme_ns_ext(NvmeNamespace *ns) in nvme_ns_ext() argument
[all …]
H A Ddif.h173 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/u-boot/drivers/spi/
H A Datcspi200_spi.c93 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 Domap-gpmc-smsc911x.dtsi30 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 Domap-gpmc-smsc9221.dtsi32 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 Domap3-igep.dtsi123 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 Dam335x-draco.dtsi137 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 Domap3-evm.dts72 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 Ddm8168-evm.dts101 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 Dam335x-chilisom.dtsi159 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 Domap3-evm-37xx.dts72 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 Dam335x-igep0033.dtsi143 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 Dam335x-brppt1-nand.dts306 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 Dlogicpd-torpedo-som.dtsi56 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 Dam3517-som.dtsi55 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 …]
/openbmc/qemu/hw/core/
H A Dnmi.c34 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 Dnvme_show.c64 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 Dio.h46 #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 Dof_addr.c19 #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 …]
/openbmc/qemu/include/hw/
H A Dclock.h53 #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 Dformatter.py101 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 Dio.h43 #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 Ds390-tod.h18 static inline uint64_t time2tod(uint64_t ns) in time2tod() argument
20 return (ns << 9) / 125 + (((ns & 0xff80000000000000ull) / 125) << 9); in time2tod()

12345678