Home
last modified time | relevance | path

Searched refs:b0 (Results 1 – 25 of 67) 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/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/staging/rtl8187se/ieee80211/
Dieee80211_crypt_ccmp.c116 u8 *pn, size_t dlen, u8 *b0, u8 *auth, in ccmp_init_blocks() argument
150 b0[0] = 0x59; in ccmp_init_blocks()
151 b0[1] = qc; in ccmp_init_blocks()
152 memcpy(b0 + 2, hdr->addr2, ETH_ALEN); in ccmp_init_blocks()
153 memcpy(b0 + 8, pn, CCMP_PN_LEN); in ccmp_init_blocks()
154 b0[14] = (dlen >> 8) & 0xff; in ccmp_init_blocks()
155 b0[15] = dlen & 0xff; in ccmp_init_blocks()
182 ieee80211_ccmp_aes_encrypt(tfm, b0, auth); in ccmp_init_blocks()
187 b0[0] &= 0x07; in ccmp_init_blocks()
188 b0[14] = b0[15] = 0; in ccmp_init_blocks()
[all …]
/drivers/mtd/nand/
Dnand_ecc.c447 unsigned char b0, b1, b2, bit_addr; in __nand_correct_data() local
458 b0 = read_ecc[0] ^ calc_ecc[0]; in __nand_correct_data()
461 b0 = read_ecc[1] ^ calc_ecc[1]; in __nand_correct_data()
471 if ((b0 | b1 | b2) == 0) in __nand_correct_data()
474 if ((((b0 ^ (b0 >> 1)) & 0x55) == 0x55) && in __nand_correct_data()
496 byte_addr = (addressbits[b1] << 4) + addressbits[b0]; in __nand_correct_data()
499 (addressbits[b1] << 4) + addressbits[b0]; in __nand_correct_data()
507 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/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/dvb/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/media/dvb/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()
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()
Ds5h1432.c75 u8 b0[] = { reg }; in s5h1432_readreg() local
79 {.addr = addr, .flags = 0, .buf = b0, .len = 1}, in s5h1432_readreg()
Dds3000.c324 u8 b0[] = { reg }; in ds3000_readreg() local
330 .buf = b0, in ds3000_readreg()
355 u8 b0[] = { reg }; in ds3000_tuner_readreg() local
361 .buf = b0, in ds3000_tuner_readreg()
Dcx22700.c90 u8 b0 [] = { reg }; in cx22700_readreg() local
92 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 … in cx22700_readreg()
Dves1x93.c112 u8 b0 [] = { 0x00, reg }; in ves1x93_readreg() local
114 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 2 … in ves1x93_readreg()
Dstv0288.c96 u8 b0[] = { reg }; in stv0288_readreg() local
102 .buf = b0, in stv0288_readreg()
Dves1820.c76 u8 b0[] = { 0x00, reg }; in ves1820_readreg() local
79 {.addr = state->config->demod_address,.flags = 0,.buf = b0,.len = 2}, in ves1820_readreg()
Dstv6110x.c43 u8 b0[] = { reg }; in stv6110x_read_reg() local
46 { .addr = config->addr, .flags = 0, .buf = b0, .len = 1 }, in stv6110x_read_reg()
/drivers/media/dvb/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/video/
Depson1355fb.c124 u8 b0 = epson1355_read_reg(par, index); in epson1355_read_reg20() local
128 return (b2 & 0x0f) << 16 | (b1 << 8) | b0; in epson1355_read_reg20()
133 u8 b0 = data & 0xff; in epson1355_write_reg20() local
137 epson1355_write_reg(par, b0, index); in epson1355_write_reg20()
/drivers/media/common/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