Home
last modified time | relevance | path

Searched refs:b0 (Results 1 – 25 of 71) sorted by relevance

123

/drivers/staging/rtl8192u/ieee80211/
Daes.c345 u32 b0[4], b1[4]; in aes_encrypt() local
348 b0[0] = u32_in (in) ^ E_KEY[0]; in aes_encrypt()
349 b0[1] = u32_in (in + 4) ^ E_KEY[1]; in aes_encrypt()
350 b0[2] = u32_in (in + 8) ^ E_KEY[2]; in aes_encrypt()
351 b0[3] = u32_in (in + 12) ^ E_KEY[3]; in aes_encrypt()
354 f_nround (b1, b0, kp); in aes_encrypt()
355 f_nround (b0, b1, kp); in aes_encrypt()
359 f_nround (b1, b0, kp); in aes_encrypt()
360 f_nround (b0, b1, kp); in aes_encrypt()
363 f_nround (b1, b0, kp); in aes_encrypt()
[all …]
Dieee80211_crypt_ccmp.c117 u8 *pn, size_t dlen, u8 *b0, u8 *auth, in ccmp_init_blocks() argument
151 b0[0] = 0x59; in ccmp_init_blocks()
152 b0[1] = qc; in ccmp_init_blocks()
153 memcpy(b0 + 2, hdr->addr2, ETH_ALEN); in ccmp_init_blocks()
154 memcpy(b0 + 8, pn, CCMP_PN_LEN); in ccmp_init_blocks()
155 b0[14] = (dlen >> 8) & 0xff; in ccmp_init_blocks()
156 b0[15] = dlen & 0xff; in ccmp_init_blocks()
183 ieee80211_ccmp_aes_encrypt(tfm, b0, auth); in ccmp_init_blocks()
188 b0[0] &= 0x07; in ccmp_init_blocks()
189 b0[14] = b0[15] = 0; in ccmp_init_blocks()
[all …]
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_crypt_ccmp.c117 u8 *pn, size_t dlen, u8 *b0, u8 *auth, in ccmp_init_blocks() argument
151 b0[0] = 0x59; in ccmp_init_blocks()
152 b0[1] = qc; in ccmp_init_blocks()
153 memcpy(b0 + 2, hdr->addr2, ETH_ALEN); in ccmp_init_blocks()
154 memcpy(b0 + 8, pn, CCMP_PN_LEN); in ccmp_init_blocks()
155 b0[14] = (dlen >> 8) & 0xff; in ccmp_init_blocks()
156 b0[15] = dlen & 0xff; in ccmp_init_blocks()
183 ieee80211_ccmp_aes_encrypt(tfm, b0, auth); in ccmp_init_blocks()
188 b0[0] &= 0x07; in ccmp_init_blocks()
189 b0[14] = b0[15] = 0; in ccmp_init_blocks()
[all …]
/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c110 u8 *pn, size_t dlen, u8 *b0, u8 *auth, in ccmp_init_blocks() argument
143 b0[0] = 0x59; in ccmp_init_blocks()
144 b0[1] = qc; in ccmp_init_blocks()
145 memcpy(b0 + 2, hdr->addr2, ETH_ALEN); in ccmp_init_blocks()
146 memcpy(b0 + 8, pn, CCMP_PN_LEN); in ccmp_init_blocks()
147 b0[14] = (dlen >> 8) & 0xff; in ccmp_init_blocks()
148 b0[15] = dlen & 0xff; in ccmp_init_blocks()
175 rtllib_ccmp_aes_encrypt(tfm, b0, auth); in ccmp_init_blocks()
180 b0[0] &= 0x07; in ccmp_init_blocks()
181 b0[14] = b0[15] = 0; in ccmp_init_blocks()
[all …]
/drivers/mtd/nand/
Dnand_ecc.c446 unsigned char b0, b1, b2, bit_addr; in __nand_correct_data() local
457 b0 = read_ecc[0] ^ calc_ecc[0]; in __nand_correct_data()
460 b0 = read_ecc[1] ^ calc_ecc[1]; in __nand_correct_data()
470 if ((b0 | b1 | b2) == 0) in __nand_correct_data()
473 if ((((b0 ^ (b0 >> 1)) & 0x55) == 0x55) && in __nand_correct_data()
495 byte_addr = (addressbits[b1] << 4) + addressbits[b0]; in __nand_correct_data()
498 (addressbits[b1] << 4) + addressbits[b0]; in __nand_correct_data()
506 if ((bitsperbyte[b0] + bitsperbyte[b1] + bitsperbyte[b2]) == 1) in __nand_correct_data()
Dalauda.c531 u8 buf[4], *b0=buf, *b1=buf+1; in alauda_init_media() local
544 if (*b0 & 0x10) in alauda_init_media()
559 if (*b0 != 0x14) { in alauda_init_media()
612 u8 buf[2], *b0 = buf, *b1 = buf+1; in alauda_check_media() local
623 if ((*b0 & 0x80) || ((*b0 & 0x1F) == 0x10)) { in alauda_check_media()
627 if (*b0 & 0x08) { in alauda_check_media()
/drivers/crypto/nx/
Dnx-aes-ccm.c150 unsigned int cryptlen, u8 *b0) in generate_b0() argument
155 memcpy(b0, iv, 16); in generate_b0()
157 lp = b0[0]; in generate_b0()
161 *b0 |= (8 * ((m - 2) / 2)); in generate_b0()
165 *b0 |= 64; in generate_b0()
167 rc = set_msg_len(b0 + 16 - l, cryptlen, l); in generate_b0()
183 u8 tmp[16], *b1 = NULL, *b0 = NULL, *result = NULL; in generate_pat() local
190 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat()
195 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat()
219 b0 = nx_ctx->csbcpb_aead->cpb.aes_cca.b0; in generate_pat()
[all …]
/drivers/usb/wusbcore/
Dcrypto.c206 struct aes_ccm_b0 b0; in wusb_ccm_mac() local
220 WARN_ON(sizeof(b0) != sizeof(struct aes_ccm_block)); in wusb_ccm_mac()
230 dst_size = blen + sizeof(b0) + sizeof(b1) + zero_padding; in wusb_ccm_mac()
242 b0.flags = 0x59; /* Format B0 */ in wusb_ccm_mac()
243 b0.ccm_nonce = *n; in wusb_ccm_mac()
244 b0.lm = cpu_to_be16(0); /* WUSB1.0[6.5] sez l(m) is 0 */ in wusb_ccm_mac()
257 sg_set_buf(&sg[0], &b0, sizeof(b0)); in wusb_ccm_mac()
/drivers/media/usb/ttusb-dec/
Dttusb_dec.c934 u8 b0[] = { 0x05 }; in ttusb_dec_start_ts_feed() local
990 result = ttusb_dec_send_command(dec, 0x80, sizeof(b0), b0, NULL, NULL); in ttusb_dec_start_ts_feed()
1001 u8 b0[] = { 0x00, 0x00, 0x00, 0x01, in ttusb_dec_start_sec_feed() local
1020 memcpy(&b0[0], &pid, 2); in ttusb_dec_start_sec_feed()
1021 memcpy(&b0[4], &x, 1); in ttusb_dec_start_sec_feed()
1022 memcpy(&b0[5], &dvbdmxfeed->filter->filter.filter_value[0], 1); in ttusb_dec_start_sec_feed()
1024 result = ttusb_dec_send_command(dec, 0x60, sizeof(b0), b0, in ttusb_dec_start_sec_feed()
1084 u8 b0[] = { 0x00 }; in ttusb_dec_stop_ts_feed() local
1086 ttusb_dec_send_command(dec, 0x81, sizeof(b0), b0, NULL, NULL); in ttusb_dec_stop_ts_feed()
1098 u8 b0[] = { 0x00, 0x00 }; in ttusb_dec_stop_sec_feed() local
[all …]
/drivers/misc/sgi-xp/
Dxp_nofault.S30 br.ret.sptk.many b0;; // Return success
35 br.ret.sptk.many b0;; // Return failure
/drivers/cpufreq/
Dexynos-cpufreq.h20 #define APLL_FREQ(f, a0, a1, a2, a3, a4, a5, a6, a7, b0, b1, b2, m, p, s) \ argument
25 .clk_div_cpu1 = (b0 << 0 | b1 << 4 | b2 << 8), \
/drivers/media/usb/dvb-usb/
Dpctv452e.c502 u8 b0[] = { 0xaa, 0, PCTV_CMD_RESET, 1, 0 }; in pctv452e_power_ctrl() local
521 b0[1] = state->c++; in pctv452e_power_ctrl()
523 ret = dvb_usb_generic_rw(d, b0, sizeof(b0), rx, PCTV_ANSWER_LEN, 0); in pctv452e_power_ctrl()
527 b0[1] = state->c++; in pctv452e_power_ctrl()
528 b0[4] = 1; in pctv452e_power_ctrl()
530 ret = dvb_usb_generic_rw(d, b0, sizeof(b0), rx, PCTV_ANSWER_LEN, 0); in pctv452e_power_ctrl()
/drivers/media/dvb-frontends/
Dlgs8gl5.c96 u8 b0[] = {reg}; in lgs8gl5_read_reg() local
102 .buf = b0, in lgs8gl5_read_reg()
136 u8 b0[] = {reg}; in lgs8gl5_update_alt_reg() local
143 .buf = b0, in lgs8gl5_update_alt_reg()
Dl64781.c68 u8 b0 [] = { reg }; in l64781_readreg() local
70 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in l64781_readreg()
506 u8 b0 [] = { 0x1a }; in l64781_attach() local
508 struct i2c_msg msg [] = { { .addr = config->demod_address, .flags = 0, .buf = b0, .len = 1 }, in l64781_attach()
Dsp887x.c55 u8 b0 [] = { reg >> 8 , reg & 0xff, data >> 8, data & 0xff }; in sp887x_writereg() local
56 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 4 }; in sp887x_writereg()
78 u8 b0 [] = { reg >> 8 , reg & 0xff }; in sp887x_readreg() local
81 struct i2c_msg msg[] = {{ .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 2 }, in sp887x_readreg()
Dau8522_common.c63 u8 b0[] = { (reg >> 8) | 0x40, reg & 0xff }; in au8522_readreg() local
68 .buf = b0, .len = 2 }, in au8522_readreg()
Dstb6000.c205 u8 b0[] = { 0 }; in stb6000_attach() local
211 .buf = b0, in stb6000_attach()
Dtda10086.c55 u8 b0[] = { reg, data }; in tda10086_write_byte() local
56 struct i2c_msg msg = { .flags = 0, .buf = b0, .len = 2 }; in tda10086_write_byte()
71 u8 b0[] = { reg }; in tda10086_read_byte() local
73 struct i2c_msg msg[] = {{ .flags = 0, .buf = b0, .len = 1 }, in tda10086_read_byte()
Dts2020.c78 u8 b0[] = { reg }; in ts2020_readreg() local
84 .buf = b0, in ts2020_readreg()
Ds5h1432.c75 u8 b0[] = { reg }; in s5h1432_readreg() local
79 {.addr = addr, .flags = 0, .buf = b0, .len = 1}, in s5h1432_readreg()
/drivers/staging/csr/
Dsdio_mmc.c182 uint8_t b0, b1; in CsrSdioRead16() local
185 b0 = sdio_readb(func, address, &err); in CsrSdioRead16()
198 *data = ((uint16_t)b1 << 8) | b0; in CsrSdioRead16()
209 uint8_t b0, b1; in CsrSdioWrite16() local
219 b0 = data & 0xFF; in CsrSdioWrite16()
220 sdio_writeb(func, b0, address, &err); in CsrSdioWrite16()
/drivers/media/pci/ttpci/
Dttpci-eeprom.c120 u8 b0[] = { 0xcc }; in ttpci_eeprom_read_encodedMAC() local
123 { .addr = 0x50, .flags = 0, .buf = b0, .len = 1 }, in ttpci_eeprom_read_encodedMAC()
/drivers/net/wireless/b43/
Dphy_ht.c597 s16 a1[3], b0[3], b1[3]; in b43_phy_ht_tx_power_ctl_setup() local
606 b0[c] = sprom->core_pwr_info[c].pa_2g[1]; in b43_phy_ht_tx_power_ctl_setup()
613 b0[c] = sprom->core_pwr_info[c].pa_5gl[1]; in b43_phy_ht_tx_power_ctl_setup()
620 b0[c] = sprom->core_pwr_info[c].pa_5g[1]; in b43_phy_ht_tx_power_ctl_setup()
627 b0[c] = sprom->core_pwr_info[c].pa_5gh[1]; in b43_phy_ht_tx_power_ctl_setup()
633 b0[0] = b0[1] = b0[2] = 5612; in b43_phy_ht_tx_power_ctl_setup()
689 num = 8 * (16 * b0[c] + b1[c] * i); in b43_phy_ht_tx_power_ctl_setup()
/drivers/net/wireless/ath/wil6210/
Dwil6210.h30 static inline u32 WIL_GET_BITS(u32 x, int b0, int b1) in WIL_GET_BITS() argument
32 return (x >> b0) & ((1 << (b1 - b0 + 1)) - 1); in WIL_GET_BITS()
/drivers/media/tuners/
Dmax2165.c71 u8 b0[] = { reg }; in max2165_read_reg() local
74 { .addr = dev_addr, .flags = 0, .buf = b0, .len = 1 }, in max2165_read_reg()

123