/drivers/staging/skein/ |
D | threefish_block.c | 7 u64 b0 = input[0], b1 = input[1], in threefish_encrypt_256() local 16 b0 += b1 + k0; in threefish_encrypt_256() 17 b1 = rol64(b1, 14) ^ b0; in threefish_encrypt_256() 23 b0 += b3; in threefish_encrypt_256() 24 b3 = rol64(b3, 52) ^ b0; in threefish_encrypt_256() 29 b0 += b1; in threefish_encrypt_256() 30 b1 = rol64(b1, 23) ^ b0; in threefish_encrypt_256() 35 b0 += b3; in threefish_encrypt_256() 36 b3 = rol64(b3, 5) ^ b0; in threefish_encrypt_256() 42 b0 += b1 + k1; in threefish_encrypt_256() [all …]
|
/drivers/staging/rtl8192e/ |
D | rtllib_crypt_ccmp.c | 111 u8 *pn, size_t dlen, u8 *b0, u8 *auth, in ccmp_init_blocks() argument 142 b0[0] = 0x59; in ccmp_init_blocks() 143 b0[1] = qc; in ccmp_init_blocks() 144 memcpy(b0 + 2, hdr->addr2, ETH_ALEN); in ccmp_init_blocks() 145 memcpy(b0 + 8, pn, CCMP_PN_LEN); in ccmp_init_blocks() 146 b0[14] = (dlen >> 8) & 0xff; in ccmp_init_blocks() 147 b0[15] = dlen & 0xff; in ccmp_init_blocks() 174 rtllib_ccmp_aes_encrypt(tfm, b0, auth); in ccmp_init_blocks() 179 b0[0] &= 0x07; in ccmp_init_blocks() 180 b0[14] = b0[15] = 0; in ccmp_init_blocks() [all …]
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_ccmp.c | 116 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/crypto/nx/ |
D | nx-aes-ccm.c | 146 unsigned int cryptlen, u8 *b0) in generate_b0() argument 151 memcpy(b0, iv, 16); in generate_b0() 153 lp = b0[0]; in generate_b0() 157 *b0 |= (8 * ((m - 2) / 2)); in generate_b0() 161 *b0 |= 64; in generate_b0() 163 rc = set_msg_len(b0 + 16 - l, cryptlen, l); in generate_b0() 179 u8 tmp[16], *b1 = NULL, *b0 = NULL, *result = NULL; in generate_pat() local 201 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat() 206 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat() 213 b0 = nx_ctx->csbcpb_aead->cpb.aes_cca.b0; in generate_pat() [all …]
|
/drivers/mtd/nand/ |
D | nand_ecc.c | 446 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()
|
/drivers/usb/wusbcore/ |
D | crypto.c | 138 struct aes_ccm_b0 b0; member 227 WARN_ON(sizeof(scratch->b0) != sizeof(struct aes_ccm_block)); in wusb_ccm_mac() 235 dst_size = blen + sizeof(scratch->b0) + sizeof(scratch->b1) + in wusb_ccm_mac() 244 scratch->b0.flags = 0x59; /* Format B0 */ in wusb_ccm_mac() 245 scratch->b0.ccm_nonce = *n; in wusb_ccm_mac() 246 scratch->b0.lm = cpu_to_be16(0); /* WUSB1.0[6.5] sez l(m) is 0 */ in wusb_ccm_mac() 259 sg_set_buf(&sg[0], &scratch->b0, sizeof(scratch->b0)); in wusb_ccm_mac()
|
/drivers/media/usb/dvb-usb/ |
D | pctv452e.c | 514 u8 *b0, *rx; in pctv452e_power_ctrl() local 525 b0 = kmalloc(5 + PCTV_ANSWER_LEN, GFP_KERNEL); in pctv452e_power_ctrl() 526 if (!b0) in pctv452e_power_ctrl() 529 rx = b0 + 5; in pctv452e_power_ctrl() 538 b0[0] = 0xaa; in pctv452e_power_ctrl() 539 b0[1] = state->c++; in pctv452e_power_ctrl() 540 b0[2] = PCTV_CMD_RESET; in pctv452e_power_ctrl() 541 b0[3] = 1; in pctv452e_power_ctrl() 542 b0[4] = 0; in pctv452e_power_ctrl() 544 ret = dvb_usb_generic_rw(d, b0, 5, rx, PCTV_ANSWER_LEN, 0); in pctv452e_power_ctrl() [all …]
|
/drivers/media/usb/ttusb-dec/ |
D | ttusb_dec.c | 933 u8 b0[] = { 0x05 }; in ttusb_dec_start_ts_feed() local 989 result = ttusb_dec_send_command(dec, 0x80, sizeof(b0), b0, NULL, NULL); in ttusb_dec_start_ts_feed() 1000 u8 b0[] = { 0x00, 0x00, 0x00, 0x01, in ttusb_dec_start_sec_feed() local 1019 memcpy(&b0[0], &pid, 2); in ttusb_dec_start_sec_feed() 1020 memcpy(&b0[4], &x, 1); in ttusb_dec_start_sec_feed() 1021 memcpy(&b0[5], &dvbdmxfeed->filter->filter.filter_value[0], 1); in ttusb_dec_start_sec_feed() 1023 result = ttusb_dec_send_command(dec, 0x60, sizeof(b0), b0, in ttusb_dec_start_sec_feed() 1083 u8 b0[] = { 0x00 }; in ttusb_dec_stop_ts_feed() local 1085 ttusb_dec_send_command(dec, 0x81, sizeof(b0), b0, NULL, NULL); in ttusb_dec_stop_ts_feed() 1097 u8 b0[] = { 0x00, 0x00 }; in ttusb_dec_stop_sec_feed() local [all …]
|
/drivers/misc/sgi-xp/ |
D | xp_nofault.S | 30 br.ret.sptk.many b0;; // Return success 35 br.ret.sptk.many b0;; // Return failure
|
/drivers/media/dvb-frontends/ |
D | lgs8gl5.c | 96 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()
|
D | l64781.c | 68 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()
|
D | sp887x.c | 55 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()
|
D | au8522_common.c | 63 u8 b0[] = { (reg >> 8) | 0x40, reg & 0xff }; in au8522_readreg() local 68 .buf = b0, .len = 2 }, in au8522_readreg()
|
D | stb6000.c | 205 u8 b0[] = { 0 }; in stb6000_attach() local 211 .buf = b0, in stb6000_attach()
|
D | tda10086.c | 55 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()
|
D | s5h1432.c | 75 u8 b0[] = { reg }; in s5h1432_readreg() local 79 {.addr = addr, .flags = 0, .buf = b0, .len = 1}, in s5h1432_readreg()
|
D | cx22700.c | 90 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()
|
D | nxt6000.c | 59 u8 b0[] = { reg }; in nxt6000_readreg() local 62 {.addr = state->config->demod_address,.flags = 0,.buf = b0,.len = 1}, in nxt6000_readreg()
|
D | stv0288.c | 96 u8 b0[] = { reg }; in stv0288_readreg() local 102 .buf = b0, in stv0288_readreg()
|
D | sp8870.c | 83 u8 b0 [] = { reg >> 8 , reg & 0xff }; in sp8870_readreg() local 85 …struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 2 … in sp8870_readreg()
|
D | ves1820.c | 76 u8 b0[] = { 0x00, reg }; in ves1820_readreg() local 79 {.addr = state->config->demod_address,.flags = 0,.buf = b0,.len = 2}, in ves1820_readreg()
|
/drivers/media/pci/ttpci/ |
D | ttpci-eeprom.c | 121 u8 b0[] = { 0xcc }; in ttpci_eeprom_read_encodedMAC() local 124 { .addr = 0x50, .flags = 0, .buf = b0, .len = 1 }, in ttpci_eeprom_read_encodedMAC()
|
/drivers/net/wireless/broadcom/b43/ |
D | phy_ht.c | 641 s16 a1[3], b0[3], b1[3]; in b43_phy_ht_tx_power_ctl_setup() local 650 b0[c] = sprom->core_pwr_info[c].pa_2g[1]; in b43_phy_ht_tx_power_ctl_setup() 657 b0[c] = sprom->core_pwr_info[c].pa_5gl[1]; in b43_phy_ht_tx_power_ctl_setup() 664 b0[c] = sprom->core_pwr_info[c].pa_5g[1]; in b43_phy_ht_tx_power_ctl_setup() 671 b0[c] = sprom->core_pwr_info[c].pa_5gh[1]; in b43_phy_ht_tx_power_ctl_setup() 677 b0[0] = b0[1] = b0[2] = 5612; in b43_phy_ht_tx_power_ctl_setup() 733 num = 8 * (16 * b0[c] + b1[c] * i); in b43_phy_ht_tx_power_ctl_setup()
|
/drivers/video/fbdev/ |
D | amba-clcd.c | 687 static int clcdfb_of_init_tft_panel(struct clcd_fb *fb, u32 r0, u32 g0, u32 b0) in clcdfb_of_init_tft_panel() argument 691 u32 r0, g0, b0; in clcdfb_of_init_tft_panel() member 720 if (r0 == panels[i].r0 && b0 == panels[i].b0) in clcdfb_of_init_tft_panel() 728 if (r0 != 0 && b0 == 0) in clcdfb_of_init_tft_panel() 739 int maxoff = max3(r0, g0, b0); in clcdfb_of_init_tft_panel()
|
/drivers/media/tuners/ |
D | max2165.c | 71 u8 b0[] = { reg }; in max2165_read_reg() local 74 { .addr = dev_addr, .flags = 0, .buf = b0, .len = 1 }, in max2165_read_reg()
|