Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 1165) sorted by relevance

12345678910>>...47

/drivers/scsi/
Du14-34f.c687 int j, tqd, utqd; in u14_34f_slave_configure() local
691 j = ((struct hostdata *) host->hostdata)->board_number; in u14_34f_slave_configure()
744 static int board_inquiry(unsigned int j) { in board_inquiry() argument
750 id_dma_addr = pci_map_single(HD(j)->pdev, HD(j)->board_id, in board_inquiry()
751 sizeof(HD(j)->board_id), PCI_DMA_BIDIRECTIONAL); in board_inquiry()
752 cpp = &HD(j)->cp[0]; in board_inquiry()
753 cpp->cp_dma_addr = pci_map_single(HD(j)->pdev, cpp, sizeof(struct mscp), in board_inquiry()
759 cpp->data_len = H2DEV(sizeof(HD(j)->board_id)); in board_inquiry()
763 if (wait_on_busy(sh[j]->io_port, MAXLOOP)) { in board_inquiry()
764 printk("%s: board_inquiry, adapter busy.\n", BN(j)); in board_inquiry()
[all …]
Datp870u.c51 unsigned char i, j, c, target_id, lun,cmdp; in atp870u_intr_handle() local
65 j = inb(tmport); in atp870u_intr_handle()
66 if ((j & 0x80) != 0) in atp870u_intr_handle()
126 if ((j & 0x40) != 0) { in atp870u_intr_handle()
133 dev->r1f[c][target_id] |= j; in atp870u_intr_handle()
277 j = inb(dev->baseport + 0x29) & 0xfe; in atp870u_intr_handle()
278 outb(j, dev->baseport + 0x29); in atp870u_intr_handle()
321 j = target_id; in atp870u_intr_handle()
323 j = (j & 0x07) | 0x40; in atp870u_intr_handle()
326 j |= dev->id[c][target_id].dirct; in atp870u_intr_handle()
[all …]
Dsd_dif.c138 unsigned int i, j; in sd_dif_type1_set_tag() local
140 for (i = 0, j = 0 ; i < sectors ; i++, j += 2, sdt++) { in sd_dif_type1_set_tag()
141 sdt->app_tag = tag[j] << 8 | tag[j+1]; in sd_dif_type1_set_tag()
150 unsigned int i, j; in sd_dif_type1_get_tag() local
152 for (i = 0, j = 0 ; i < sectors ; i++, j += 2, sdt++) { in sd_dif_type1_get_tag()
153 tag[j] = (sdt->app_tag & 0xff00) >> 8; in sd_dif_type1_get_tag()
154 tag[j+1] = sdt->app_tag & 0xff; in sd_dif_type1_get_tag()
252 unsigned int i, j; in sd_dif_type3_set_tag() local
254 for (i = 0, j = 0 ; i < sectors ; i++, j += 6, sdt++) { in sd_dif_type3_set_tag()
255 sdt->app_tag = tag[j] << 8 | tag[j+1]; in sd_dif_type3_set_tag()
[all …]
Dqlogicfas408.c98 int j; in ql_pdma() local
100 j = 0; in ql_pdma()
110 while (reqlen >= 84 && !(j & 0xc0)) /* 2/3 */ in ql_pdma()
111 if ((j = inb(qbase + 8)) & 4) in ql_pdma()
125 j = 0; in ql_pdma()
126 while (reqlen && !((j & 0x10) && (j & 0xc0))) in ql_pdma()
129 j &= 0xc0; in ql_pdma()
130 while (reqlen && !((j = inb(qbase + 8)) & 0x10)) in ql_pdma()
135 if (j & 0x10) in ql_pdma()
136 j = inb(qbase + 8); in ql_pdma()
[all …]
/drivers/md/bcache/
Dbset.c280 static unsigned inorder_next(unsigned j, unsigned size) in inorder_next() argument
282 if (j * 2 + 1 < size) { in inorder_next()
283 j = j * 2 + 1; in inorder_next()
285 while (j * 2 < size) in inorder_next()
286 j *= 2; in inorder_next()
288 j >>= ffz(j) + 1; in inorder_next()
290 return j; in inorder_next()
293 static unsigned inorder_prev(unsigned j, unsigned size) in inorder_prev() argument
295 if (j * 2 < size) { in inorder_prev()
296 j = j * 2; in inorder_prev()
[all …]
Djournal.c38 struct jset *j, *data = ca->set->journal.w[0].data; in journal_read_bucket() local
68 j = data; in journal_read_bucket()
71 size_t blocks, bytes = set_bytes(j); in journal_read_bucket()
73 if (j->magic != jset_magic(ca->set)) in journal_read_bucket()
82 if (j->csum != csum_set(j)) in journal_read_bucket()
85 blocks = set_blocks(j, ca->set); in journal_read_bucket()
90 if (i->j.seq >= j->last_seq) in journal_read_bucket()
97 if (j->seq == i->j.seq) in journal_read_bucket()
100 if (j->seq < i->j.last_seq) in journal_read_bucket()
103 if (j->seq > i->j.seq) { in journal_read_bucket()
[all …]
/drivers/net/wireless/brcm80211/brcmsmac/
Dchannel.c238 int j; in brcms_c_channel_min_txpower_limits_with_local_constraint() local
241 for (j = 0; j < WL_TX_POWER_CCK_NUM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
242 txpwr->cck[j] = min(txpwr->cck[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
245 for (j = 0; j < WL_TX_POWER_OFDM_NUM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
246 txpwr->ofdm[j] = min(txpwr->ofdm[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
249 for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
250 txpwr->ofdm_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
251 min(txpwr->ofdm_cdd[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
254 for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
255 txpwr->ofdm_40_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
[all …]
/drivers/staging/wlan-ng/
Dp80211wep.c154 u32 i, j, k, crc, keylen; in wep_decrypt() local
192 j = 0; in wep_decrypt()
194 j = (j + s[i] + key[i % keylen]) & 0xff; in wep_decrypt()
195 swap(i, j); in wep_decrypt()
200 i = j = 0; in wep_decrypt()
203 j = (j + s[i]) & 0xff; in wep_decrypt()
204 swap(i, j); in wep_decrypt()
205 buf[k] ^= s[(s[i] + s[j]) & 0xff]; in wep_decrypt()
218 j = (j + s[i]) & 0xff; in wep_decrypt()
219 swap(i, j); in wep_decrypt()
[all …]
/drivers/staging/rtl8712/
Drtl871x_security.c131 sint i, j; in crc32_init() local
139 for (c = ((u32)k) << 24, j = 8; j > 0; --j) in crc32_init()
1032 uint qc_exists, a4_exists, i, j, payload_remainder; in aes_cipher() local
1104 for (j = 0; j < 16; j++) in aes_cipher()
1105 padded_buffer[j] = 0x00; in aes_cipher()
1106 for (j = 0; j < payload_remainder; j++) in aes_cipher()
1107 padded_buffer[j] = pframe[payload_index++]; in aes_cipher()
1111 for (j = 0; j < 8; j++) in aes_cipher()
1112 mic[j] = aes_out[j]; in aes_cipher()
1114 for (j = 0; j < 8; j++) in aes_cipher()
[all …]
/drivers/video/console/
Dfbcon_rotate.h42 int i, j; in rotate_ud() local
48 for (j = 0; j < width - shift; j++) { in rotate_ud()
49 if (pattern_test_bit(j, i, width, in)) in rotate_ud()
50 pattern_set_bit(width - (1 + j + shift), in rotate_ud()
60 int i, j, h = height, w = width; in rotate_cw() local
67 for (j = 0; j < w; j++) { in rotate_cw()
68 if (pattern_test_bit(j, i, width, in)) in rotate_cw()
69 pattern_set_bit(height - 1 - i - shift, j, in rotate_cw()
78 int i, j, h = height, w = width; in rotate_ccw() local
85 for (j = 0; j < w; j++) { in rotate_ccw()
[all …]
/drivers/input/joystick/
Dgrip.c127 unsigned int i, j, buf, crc; in grip_xt_read_packet() local
136 status = buf = i = j = 0; in grip_xt_read_packet()
162 j++; in grip_xt_read_packet()
172 } while (status != 0xf && i < GRIP_MAX_BITS_XT && j < GRIP_MAX_CHUNKS_XT && t > 0); in grip_xt_read_packet()
188 int i, j; in grip_poll() local
210 for (j = 0; j < 12; j++) in grip_poll()
211 if (grip_btn_gpp[j]) in grip_poll()
212 input_report_key(dev, grip_btn_gpp[j], (*data >> j) & 1); in grip_poll()
230 for (j = 0; j < 5; j++) in grip_poll()
231 input_report_key(dev, grip_btn_bd[j], (data[3] >> (j + 4)) & 1); in grip_poll()
[all …]
Dsidewinder.c199 int j; in sw_read_packet() local
201 for (j = 0; j < i; j++) printk("%d", buf[j]); in sw_read_packet()
304 int hat, i, j; in sw_parse() local
324 for (j = 0; j < 7; j++) in sw_parse()
325 input_report_key(dev, sw_btn[SW_ID_3DP][j], !GB(j+8,1)); in sw_parse()
344 for (j = 0; j < 10; j++) in sw_parse()
345 input_report_key(sw->dev[i], sw_btn[SW_ID_GP][j], !GB(i*15+j+4,1)); in sw_parse()
367 for (j = 0; j < 9; j++) in sw_parse()
368 input_report_key(dev, sw_btn[SW_ID_PP][j], !GB(j,1)); in sw_parse()
387 for (j = 0; j < 6; j++) in sw_parse()
[all …]
Ddb9.c208 int i, j; in db9_saturn_read_packet() local
248 for (j = 0; j < (data[i] & 0x0f); j++) in db9_saturn_read_packet()
249 data[i + j + 1] = db9_saturn_read_analog(port, type, powered); in db9_saturn_read_packet()
276 int tmp, i, j; in db9_saturn_report() local
279 for (j = 0; j < tmp && n < max_pads; j += 10, n++) { in db9_saturn_report()
281 switch (data[j]) { in db9_saturn_report()
283 input_report_abs(dev, db9_abs[5], data[j + 6]); in db9_saturn_report()
285 input_report_abs(dev, db9_abs[3], data[j + 4]); in db9_saturn_report()
286 input_report_abs(dev, db9_abs[4], data[j + 5]); in db9_saturn_report()
288 input_report_abs(dev, db9_abs[2], data[j + 3]); in db9_saturn_report()
[all …]
/drivers/sh/intc/
Dhandle.c22 unsigned int i, j; in intc_grp_id() local
27 for (j = 0; g->enum_ids[j]; j++) { in intc_grp_id()
28 if (g->enum_ids[j] != enum_id) in intc_grp_id()
93 unsigned int j = 0; in intc_get_mask_handle() local
96 ret = _intc_mask_data(desc, d, enum_id, &i, &j); in intc_get_mask_handle()
162 unsigned int j = 0; in intc_get_prio_handle() local
165 ret = _intc_prio_data(desc, d, enum_id, &i, &j); in intc_get_prio_handle()
179 unsigned int i, j, fn, mode; in intc_ack_data() local
185 for (j = 0; j < ARRAY_SIZE(mr->enum_ids); j++) { in intc_ack_data()
186 if (mr->enum_ids[j] != enum_id) in intc_ack_data()
[all …]
/drivers/staging/vt6656/
Dwpa2.c104 int i, j; in WPA2vParseRSN() local
156 j = 0; in WPA2vParseRSN()
159 … for (i = 0; (i < pBSSNode->wCSSPKCount) && (j < sizeof(pBSSNode->abyCSSPK)/sizeof(u8)); i++) { in WPA2vParseRSN()
163 pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_USE_GROUP; in WPA2vParseRSN()
169 pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_TKIP; in WPA2vParseRSN()
173 pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_CCMP; in WPA2vParseRSN()
178 pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_UNKNOWN; in WPA2vParseRSN()
181 … DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"abyCSSPK[%d]: %X\n", j-1, pBSSNode->abyCSSPK[j-1]); in WPA2vParseRSN()
187 if (j != 1) { in WPA2vParseRSN()
196 if ((pBSSNode->wCSSPKCount != 0) && (j == 0)) { in WPA2vParseRSN()
[all …]
/drivers/isdn/mISDN/
Ddsp_blowfish.c371 int i = 0, j = dsp->bf_crypt_pos; in dsp_bf_encrypt() local
382 if (j < 9) { in dsp_bf_encrypt()
383 bf_data_in[j] = *data; in dsp_bf_encrypt()
384 *data++ = bf_crypt_out[j++]; in dsp_bf_encrypt()
388 j = 0; in dsp_bf_encrypt()
448 dsp->bf_crypt_pos = j; in dsp_bf_encrypt()
461 u8 j = dsp->bf_decrypt_in_pos; in dsp_bf_decrypt() local
478 bf_crypt_inring[j++ & 15] = *data; in dsp_bf_decrypt()
486 j -= 9; in dsp_bf_decrypt()
488 yl = bf_crypt_inring[j++ & 15]; in dsp_bf_decrypt()
[all …]
/drivers/char/agp/
Dsgi-agp.c133 off_t j; in sgi_tioca_insert_memory() local
177 j = pg_start; in sgi_tioca_insert_memory()
179 while (j < (pg_start + mem->page_count)) { in sgi_tioca_insert_memory()
180 if (table[j]) in sgi_tioca_insert_memory()
182 j++; in sgi_tioca_insert_memory()
190 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in sgi_tioca_insert_memory()
191 table[j] = in sgi_tioca_insert_memory()
275 unsigned int j; in agp_sgi_init() local
290 j = 0; in agp_sgi_init()
303 sgi_tioca_agp_bridges[j] = agp_alloc_bridge(); in agp_sgi_init()
[all …]
/drivers/gpu/drm/nouveau/core/subdev/fb/
Dnv30.c70 calc_bias(struct nv30_fb_priv *priv, int k, int i, int j) in calc_bias() argument
74 nv_rd32(priv, 0x122c + 0x10 * k + 0x4 * j) >> (4 * (i ^ 1)) : in calc_bias()
83 int j, x = 0; in calc_ref() local
85 for (j = 0; j < 4; j++) { in calc_ref()
86 int m = (l >> (8 * i) & 0xff) + calc_bias(priv, k, i, j); in calc_ref()
88 x |= (0x80 | clamp(m, 0, 0x1f)) << (8 * j); in calc_ref()
99 int ret, i, j; in nv30_fb_init() local
114 for (j = 0; j < 3; j++) in nv30_fb_init()
115 nv_wr32(priv, 0x10037c + 0xc * i + 0x4 * j, in nv30_fb_init()
116 calc_ref(priv, l, 0, j)); in nv30_fb_init()
[all …]
/drivers/scsi/isci/
Dprobe_roms.c46 int j; in isci_request_oprom() local
80 for (j = 0, sum = 0; j < sizeof(oem_hdr); j++, tmp++) in isci_request_oprom()
84 for (j = 0; j < sizeof(*rom); j++, tmp++) in isci_request_oprom()
117 int i, j; in isci_request_firmware() local
145 for (j = 0; j < ARRAY_SIZE(orom->ctrl[i].phys); j++) { in isci_request_firmware()
146 orom->ctrl[i].phys[j].afe_tx_amp_control0 = 0xe7c03; in isci_request_firmware()
147 orom->ctrl[i].phys[j].afe_tx_amp_control1 = 0xe7c03; in isci_request_firmware()
148 orom->ctrl[i].phys[j].afe_tx_amp_control2 = 0xe7c03; in isci_request_firmware()
149 orom->ctrl[i].phys[j].afe_tx_amp_control3 = 0xe7c03; in isci_request_firmware()
172 int j; in isci_get_efi_var() local
[all …]
/drivers/tty/ipwireless/
Dtty.c456 static int add_tty(int j, in add_tty() argument
461 ttys[j] = kzalloc(sizeof(struct ipw_tty), GFP_KERNEL); in add_tty()
462 if (!ttys[j]) in add_tty()
464 ttys[j]->index = j; in add_tty()
465 ttys[j]->hardware = hardware; in add_tty()
466 ttys[j]->channel_idx = channel_idx; in add_tty()
467 ttys[j]->secondary_channel_idx = secondary_channel_idx; in add_tty()
468 ttys[j]->network = network; in add_tty()
469 ttys[j]->tty_type = tty_type; in add_tty()
470 mutex_init(&ttys[j]->ipw_tty_mutex); in add_tty()
[all …]
/drivers/tty/vt/
Dconsolemap.c189 int j, glyph; in set_inverse_transl() local
202 for (j = 0; j < E_TABSZ; j++) { in set_inverse_transl()
203 glyph = conv_uni_to_pc(conp, t[j]); in set_inverse_transl()
206 q[glyph] = j; in set_inverse_transl()
214 int i, j, k, glyph; in set_inverse_trans_unicode() local
232 for (j = 0; j < 32; j++) { in set_inverse_trans_unicode()
233 p2 = p1[j]; in set_inverse_trans_unicode()
240 q[glyph] = (i << 11) + (j << 6) + k; in set_inverse_trans_unicode()
397 int i, j; in con_release_unimap() local
402 for (j = 0; j < 32; j++) in con_release_unimap()
[all …]
/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c223 int i, j; in vmxnet3_get_strings() local
224 for (j = 0; j < adapter->num_tx_queues; j++) { in vmxnet3_get_strings()
238 for (j = 0; j < adapter->num_rx_queues; j++) { in vmxnet3_get_strings()
306 int j = 0; in vmxnet3_get_ethtool_stats() local
313 for (j = 0; j < adapter->num_tx_queues; j++) { in vmxnet3_get_ethtool_stats()
314 base = (u8 *)&adapter->tqd_start[j].stats; in vmxnet3_get_ethtool_stats()
315 *buf++ = (u64)j; in vmxnet3_get_ethtool_stats()
320 base = (u8 *)&adapter->tx_queue[j].stats; in vmxnet3_get_ethtool_stats()
326 for (j = 0; j < adapter->num_tx_queues; j++) { in vmxnet3_get_ethtool_stats()
327 base = (u8 *)&adapter->rqd_start[j].stats; in vmxnet3_get_ethtool_stats()
[all …]
/drivers/staging/iio/accel/
Dlis3l02dq_ring.c60 int ret, i, j = 0; in lis3l02dq_read_all() local
73 xfers[j].tx_buf = st->tx + 2*j; in lis3l02dq_read_all()
74 st->tx[2*j] = read_all_tx_array[i*4]; in lis3l02dq_read_all()
75 st->tx[2*j + 1] = 0; in lis3l02dq_read_all()
77 xfers[j].rx_buf = rx_array + j*2; in lis3l02dq_read_all()
78 xfers[j].bits_per_word = 8; in lis3l02dq_read_all()
79 xfers[j].len = 2; in lis3l02dq_read_all()
80 xfers[j].cs_change = 1; in lis3l02dq_read_all()
81 j++; in lis3l02dq_read_all()
84 xfers[j].tx_buf = st->tx + 2*j; in lis3l02dq_read_all()
[all …]
/drivers/iio/imu/
Dadis_buffer.c29 unsigned int i, j; in adis_update_scan_mode() local
50 for (j = 0; j <= scan_count; j++) { in adis_update_scan_mode()
51 adis->xfer[j].bits_per_word = 8; in adis_update_scan_mode()
52 if (j != scan_count) in adis_update_scan_mode()
53 adis->xfer[j].cs_change = 1; in adis_update_scan_mode()
54 adis->xfer[j].len = 2; in adis_update_scan_mode()
55 adis->xfer[j].delay_usecs = adis->data->read_delay; in adis_update_scan_mode()
56 if (j < scan_count) in adis_update_scan_mode()
57 adis->xfer[j].tx_buf = &tx[j]; in adis_update_scan_mode()
58 if (j >= 1) in adis_update_scan_mode()
[all …]
/drivers/misc/cb710/
Ddebug.c36 unsigned i, j; \
42 for (j = 0; j < 0x10/(t/8); ++j) { \
43 if (!allow_reg_read(i, j, t)) \
45 reg[j] = ioread##t(iobase \
46 + (i << 4) + (j * (t/8))); \
64 unsigned i, j; \
70 for (j = 0; j < 0x10/(t/8); ++j) { \
72 if (j == 8/(t/8)) \
74 if (allow_reg_read(i, j, t)) \
75 p += sprintf(p, format, reg[j]); \

12345678910>>...47