Home
last modified time | relevance | path

Searched refs:wordlen (Results 1 – 15 of 15) sorted by relevance

/external/u-boot/drivers/spi/
Dspi.c11 int spi_set_wordlen(struct spi_slave *slave, unsigned int wordlen) in spi_set_wordlen() argument
13 if (wordlen == 0 || wordlen > 32) { in spi_set_wordlen()
14 printf("spi: invalid wordlen %u\n", wordlen); in spi_set_wordlen()
18 slave->wordlen = wordlen; in spi_set_wordlen()
36 slave->wordlen = SPI_DEFAULT_WORDLEN; in spi_do_alloc_slave()
Domap3_spi.c118 unsigned int wordlen; member
148 chconf |= (priv->wordlen - 1) << 7; in omap3_spi_write()
166 if (priv->wordlen > 16) in omap3_spi_write()
168 else if (priv->wordlen > 8) in omap3_spi_write()
203 chconf |= (priv->wordlen - 1) << 7; in omap3_spi_read()
228 if (priv->wordlen > 16) in omap3_spi_read()
230 else if (priv->wordlen > 8) in omap3_spi_read()
258 chconf |= (priv->wordlen - 1) << 7; in omap3_spi_txrx()
276 if (priv->wordlen > 16) in omap3_spi_txrx()
278 else if (priv->wordlen > 8) in omap3_spi_txrx()
[all …]
Dpic32_spi.c159 unsigned int wordlen) in pic32_spi_set_word_size() argument
164 switch (wordlen) { in pic32_spi_set_word_size()
192 priv->fifo_n_word = DIV_ROUND_UP(priv->fifo_depth, wordlen / 8); in pic32_spi_set_word_size()
337 static int pic32_spi_set_wordlen(struct udevice *slave, unsigned int wordlen) in pic32_spi_set_wordlen() argument
341 return pic32_spi_set_word_size(priv, wordlen); in pic32_spi_set_wordlen()
Dspi-uclass.c166 slave->wordlen = SPI_DEFAULT_WORDLEN; in spi_child_pre_probe()
/external/u-boot/arch/arc/include/asm/
Dio.h126 static inline int __raw_readsw(unsigned int addr, void *data, int wordlen) in __raw_readsw() argument
133 : "r" (addr), "r" (data), "r" (wordlen) in __raw_readsw()
135 return wordlen; in __raw_readsw()
162 static inline int __raw_writesw(unsigned int addr, void *data, int wordlen) in __raw_writesw() argument
169 : "r" (addr), "r" (data), "r" (wordlen) in __raw_writesw()
171 return wordlen; in __raw_writesw()
/external/curl/lib/
Dcurl_sasl.h113 #define sasl_mech_equal(line, wordlen, mech) \ argument
114 (wordlen == (sizeof(mech) - 1) / sizeof(char) && \
115 !memcmp(line, mech, wordlen))
Dpop3.c699 size_t wordlen; in pop3_state_capa_resp() local
714 for(wordlen = 0; wordlen < len && line[wordlen] != ' ' && in pop3_state_capa_resp()
715 line[wordlen] != '\t' && line[wordlen] != '\r' && in pop3_state_capa_resp()
716 line[wordlen] != '\n';) in pop3_state_capa_resp()
717 wordlen++; in pop3_state_capa_resp()
720 mechbit = Curl_sasl_decode_mech(line, wordlen, &llen); in pop3_state_capa_resp()
721 if(mechbit && llen == wordlen) in pop3_state_capa_resp()
724 line += wordlen; in pop3_state_capa_resp()
725 len -= wordlen; in pop3_state_capa_resp()
Dimap.c879 size_t wordlen; in imap_state_capability_resp() local
891 for(wordlen = 0; line[wordlen] && line[wordlen] != ' ' && in imap_state_capability_resp()
892 line[wordlen] != '\t' && line[wordlen] != '\r' && in imap_state_capability_resp()
893 line[wordlen] != '\n';) in imap_state_capability_resp()
894 wordlen++; in imap_state_capability_resp()
897 if(wordlen == 8 && !memcmp(line, "STARTTLS", 8)) in imap_state_capability_resp()
901 else if(wordlen == 13 && !memcmp(line, "LOGINDISABLED", 13)) in imap_state_capability_resp()
905 else if(wordlen == 7 && !memcmp(line, "SASL-IR", 7)) in imap_state_capability_resp()
909 else if(wordlen > 5 && !memcmp(line, "AUTH=", 5)) { in imap_state_capability_resp()
914 wordlen -= 5; in imap_state_capability_resp()
[all …]
Dsmtp.c745 size_t wordlen; in smtp_state_ehlo_resp() local
760 for(wordlen = 0; wordlen < len && line[wordlen] != ' ' && in smtp_state_ehlo_resp()
761 line[wordlen] != '\t' && line[wordlen] != '\r' && in smtp_state_ehlo_resp()
762 line[wordlen] != '\n';) in smtp_state_ehlo_resp()
763 wordlen++; in smtp_state_ehlo_resp()
766 mechbit = Curl_sasl_decode_mech(line, wordlen, &llen); in smtp_state_ehlo_resp()
767 if(mechbit && llen == wordlen) in smtp_state_ehlo_resp()
770 line += wordlen; in smtp_state_ehlo_resp()
771 len -= wordlen; in smtp_state_ehlo_resp()
/external/u-boot/arch/nds32/include/asm/
Dio.h75 extern void __raw_writesw(unsigned int addr, const void *data, int wordlen);
79 extern void __raw_readsw(unsigned int addr, void *data, int wordlen);
270 static inline void readsw(unsigned int *addr, void * data, int wordlen) in readsw() argument
274 while (wordlen) { in readsw()
277 wordlen--; in readsw()
301 static inline void writesw(unsigned int *addr, const void * data, int wordlen) in writesw() argument
305 while (wordlen) { in writesw()
308 wordlen--; in writesw()
/external/u-boot/include/
Dspi.h105 unsigned int wordlen; member
229 int spi_set_wordlen(struct spi_slave *slave, unsigned int wordlen);
377 int (*set_wordlen)(struct udevice *dev, unsigned int wordlen);
/external/u-boot/arch/riscv/include/asm/
Dio.h292 static inline void readsw(unsigned int *addr, void *data, int wordlen) in readsw() argument
300 while (wordlen) { in readsw()
303 wordlen--; in readsw()
337 static inline void writesw(unsigned int *addr, const void *data, int wordlen) in writesw() argument
345 while (wordlen) { in writesw()
348 wordlen--; in writesw()
/external/tcpdump/
Dprint-ospf6.c413 u_int wordlen; in ospf6_print_lsaprefix() local
420 wordlen = (lsapp->lsa_p_len + 31) / 32; in ospf6_print_lsaprefix()
421 if (wordlen * 4 > sizeof(struct in6_addr)) { in ospf6_print_lsaprefix()
425 if (lsa_length < wordlen * 4) in ospf6_print_lsaprefix()
427 lsa_length -= wordlen * 4; in ospf6_print_lsaprefix()
428 ND_TCHECK2(lsapp->lsa_p_prefix, wordlen * 4); in ospf6_print_lsaprefix()
430 memcpy(&prefix, lsapp->lsa_p_prefix, wordlen * 4); in ospf6_print_lsaprefix()
439 return sizeof(*lsapp) - IPV6_ADDR_LEN_BYTES + wordlen * 4; in ospf6_print_lsaprefix()
/external/u-boot/arch/arm/include/asm/
Dio.h61 int wordlen) in __raw_writesw() argument
64 while(wordlen--) in __raw_writesw()
83 static inline void __raw_readsw(unsigned long addr, void *data, int wordlen) in __raw_readsw() argument
86 while(wordlen--) in __raw_readsw()
/external/u-boot/arch/sh/include/asm/
Dio.h42 extern void __raw_writesw(unsigned int addr, const void *data, int wordlen);
46 extern void __raw_readsw(unsigned int addr, void *data, int wordlen);