Home
last modified time | relevance | path

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

12345678910>>...68

/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/
Dia_css_eed1_8.host.c94 unsigned int i, j, base; in ia_css_eed1_8_vmem_encode() local
130 for (j = 0; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode()
131 assert(from->dew_enhance_seg_x[j] > -1); in ia_css_eed1_8_vmem_encode()
132 assert(from->dew_enhance_seg_y[j] > -1); in ia_css_eed1_8_vmem_encode()
135 for (j = 1; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode()
136 assert(from->dew_enhance_seg_x[j] > from->dew_enhance_seg_x[j - 1]); in ia_css_eed1_8_vmem_encode()
137 assert(from->dew_enhance_seg_y[j] > from->dew_enhance_seg_y[j - 1]); in ia_css_eed1_8_vmem_encode()
152 for (j = 1; j < NUMBER_OF_CHGRINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode()
153 assert(chgrinv_x[j] > chgrinv_x[j - 1]); in ia_css_eed1_8_vmem_encode()
156 for (j = 1; j < NUMBER_OF_TCINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode()
[all …]
/drivers/video/logo/
Dpnmtologo.c128 unsigned int i, j; in read_image() local
178 for (j = 0; j < logo_width; j++) in read_image()
179 logo_data[i][j].red = logo_data[i][j].green = in read_image()
180 logo_data[i][j].blue = 255*(1-get_number(fp)); in read_image()
187 for (j = 0; j < logo_width; j++) in read_image()
188 logo_data[i][j].red = logo_data[i][j].green = in read_image()
189 logo_data[i][j].blue = get_number255(fp, maxval); in read_image()
196 for (j = 0; j < logo_width; j++) { in read_image()
197 logo_data[i][j].red = get_number255(fp, maxval); in read_image()
198 logo_data[i][j].green = get_number255(fp, maxval); in read_image()
[all …]
/drivers/acpi/acpica/
Dutbuffer.c37 u32 j; in acpi_ut_dump_buffer() local
64 for (j = 0; j < 16;) { in acpi_ut_dump_buffer()
65 if (i + j >= count) { in acpi_ut_dump_buffer()
70 j += display; in acpi_ut_dump_buffer()
79 buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
85 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
92 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
99 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
103 &buffer[(acpi_size)i + j + in acpi_ut_dump_buffer()
109 j += display; in acpi_ut_dump_buffer()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dchannel.c233 int j; in brcms_c_channel_min_txpower_limits_with_local_constraint() local
236 for (j = 0; j < WL_TX_POWER_CCK_NUM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
237 txpwr->cck[j] = min(txpwr->cck[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
240 for (j = 0; j < WL_TX_POWER_OFDM_NUM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
241 txpwr->ofdm[j] = min(txpwr->ofdm[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
244 for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
245 txpwr->ofdm_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
246 min(txpwr->ofdm_cdd[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_40_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
[all …]
/drivers/md/bcache/
Dbset.c371 static unsigned int inorder_next(unsigned int j, unsigned int size) in inorder_next() argument
373 if (j * 2 + 1 < size) { in inorder_next()
374 j = j * 2 + 1; in inorder_next()
376 while (j * 2 < size) in inorder_next()
377 j *= 2; in inorder_next()
379 j >>= ffz(j) + 1; in inorder_next()
381 return j; in inorder_next()
388 static unsigned int inorder_prev(unsigned int j, unsigned int size) in inorder_prev() argument
390 if (j * 2 < size) { in inorder_prev()
391 j = j * 2; in inorder_prev()
[all …]
Djournal.c42 struct jset *j, *data = ca->set->journal.w[0].data; in journal_read_bucket() local
75 j = data; in journal_read_bucket()
78 size_t blocks, bytes = set_bytes(j); in journal_read_bucket()
80 if (j->magic != jset_magic(&ca->sb)) { in journal_read_bucket()
95 if (j->csum != csum_set(j)) { in journal_read_bucket()
101 blocks = set_blocks(j, block_bytes(ca)); in journal_read_bucket()
120 if (i->j.seq >= j->last_seq) in journal_read_bucket()
128 if (j->seq == i->j.seq) in journal_read_bucket()
135 if (j->seq < i->j.last_seq) in journal_read_bucket()
142 if (j->seq > i->j.seq) { in journal_read_bucket()
[all …]
/drivers/staging/wlan-ng/
Dp80211wep.c93 u32 i, j, k, crc, keylen; in wep_decrypt() local
126 j = 0; in wep_decrypt()
128 j = (j + s[i] + key[i % keylen]) & 0xff; in wep_decrypt()
129 swap(i, j); in wep_decrypt()
134 j = 0; in wep_decrypt()
137 j = (j + s[i]) & 0xff; in wep_decrypt()
138 swap(i, j); in wep_decrypt()
139 buf[k] ^= s[(s[i] + s[j]) & 0xff]; in wep_decrypt()
151 j = (j + s[i]) & 0xff; in wep_decrypt()
152 swap(i, j); in wep_decrypt()
[all …]
/drivers/staging/rtl8712/
Drtl871x_security.c114 sint i, j; in crc32_init() local
124 for (c = ((u32)k) << 24, j = 8; j > 0; --j) in crc32_init()
1017 uint qc_exists, a4_exists, i, j, payload_remainder; in aes_cipher() local
1090 for (j = 0; j < 16; j++) in aes_cipher()
1091 padded_buffer[j] = 0x00; in aes_cipher()
1092 for (j = 0; j < payload_remainder; j++) in aes_cipher()
1093 padded_buffer[j] = pframe[payload_index++]; in aes_cipher()
1097 for (j = 0; j < 8; j++) in aes_cipher()
1098 mic[j] = aes_out[j]; in aes_cipher()
1100 for (j = 0; j < 8; j++) in aes_cipher()
[all …]
/drivers/scsi/
Datp870u.c122 unsigned char i, j, c, target_id, lun,cmdp; in atp870u_intr_handle() local
133 j = atp_readb_io(dev, c, 0x1f); in atp870u_intr_handle()
134 if ((j & 0x80) != 0) in atp870u_intr_handle()
138 if ((j & 0x80) == 0) in atp870u_intr_handle()
178 if ((j & 0x40) != 0) { in atp870u_intr_handle()
185 dev->r1f[c][target_id] |= j; in atp870u_intr_handle()
316 j = atp_readb_base(dev, 0x29) & 0xfe; in atp870u_intr_handle()
317 atp_writeb_base(dev, 0x29, j); in atp870u_intr_handle()
352 j = target_id; in atp870u_intr_handle()
354 j = (j & 0x07) | 0x40; in atp870u_intr_handle()
[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/video/fbdev/core/
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/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv30.c66 calc_bias(struct nvkm_fb *fb, int k, int i, int j) in calc_bias() argument
70 nvkm_rd32(device, 0x122c + 0x10 * k + 0x4 * j) >> in calc_bias()
80 int j, x = 0; in calc_ref() local
82 for (j = 0; j < 4; j++) { in calc_ref()
83 int m = (l >> (8 * i) & 0xff) + calc_bias(fb, k, i, j); in calc_ref()
85 x |= (0x80 | clamp(m, 0, 0x1f)) << (8 * j); in calc_ref()
95 int i, j; in nv30_fb_init() local
106 for (j = 0; j < 3; j++) in nv30_fb_init()
107 nvkm_wr32(device, 0x10037c + 0xc * i + 0x4 * j, in nv30_fb_init()
108 calc_ref(fb, l, 0, j)); in nv30_fb_init()
[all …]
/drivers/staging/media/hantro/
Dhantro_vp8.c53 u32 i, j, k; in hantro_vp8_prob_update() local
90 for (j = 0; j < 8; j += 4) { in hantro_vp8_prob_update()
91 dst[0] = entropy->mv_probs[i][j + 9 + 0]; in hantro_vp8_prob_update()
92 dst[1] = entropy->mv_probs[i][j + 9 + 1]; in hantro_vp8_prob_update()
93 dst[2] = entropy->mv_probs[i][j + 9 + 2]; in hantro_vp8_prob_update()
94 dst[3] = entropy->mv_probs[i][j + 9 + 3]; in hantro_vp8_prob_update()
114 for (j = 0; j < 8; ++j) { in hantro_vp8_prob_update()
116 dst[0] = entropy->coeff_probs[i][j][k][0]; in hantro_vp8_prob_update()
117 dst[1] = entropy->coeff_probs[i][j][k][1]; in hantro_vp8_prob_update()
118 dst[2] = entropy->coeff_probs[i][j][k][2]; in hantro_vp8_prob_update()
[all …]
/drivers/input/joystick/
Dgrip.c110 unsigned int i, j, buf, crc; in grip_xt_read_packet() local
119 status = buf = i = j = 0; in grip_xt_read_packet()
145 j++; in grip_xt_read_packet()
155 } while (status != 0xf && i < GRIP_MAX_BITS_XT && j < GRIP_MAX_CHUNKS_XT && t > 0); in grip_xt_read_packet()
171 int i, j; in grip_poll() local
193 for (j = 0; j < 12; j++) in grip_poll()
194 if (grip_btn_gpp[j]) in grip_poll()
195 input_report_key(dev, grip_btn_gpp[j], (*data >> j) & 1); in grip_poll()
213 for (j = 0; j < 5; j++) in grip_poll()
214 input_report_key(dev, grip_btn_bd[j], (data[3] >> (j + 4)) & 1); in grip_poll()
[all …]
Dsidewinder.c182 int j; in sw_read_packet() local
184 for (j = 0; j < i; j++) printk("%d", buf[j]); in sw_read_packet()
287 int hat, i, j; in sw_parse() local
307 for (j = 0; j < 7; j++) in sw_parse()
308 input_report_key(dev, sw_btn[SW_ID_3DP][j], !GB(j+8,1)); in sw_parse()
327 for (j = 0; j < 10; j++) in sw_parse()
328 input_report_key(sw->dev[i], sw_btn[SW_ID_GP][j], !GB(i*15+j+4,1)); in sw_parse()
350 for (j = 0; j < 9; j++) in sw_parse()
351 input_report_key(dev, sw_btn[SW_ID_PP][j], !GB(j,1)); in sw_parse()
370 for (j = 0; j < 6; j++) in sw_parse()
[all …]
Ddb9.c193 int i, j; in db9_saturn_read_packet() local
233 for (j = 0; j < (data[i] & 0x0f); j++) in db9_saturn_read_packet()
234 data[i + j + 1] = db9_saturn_read_analog(port, type, powered); in db9_saturn_read_packet()
262 int tmp, i, j; in db9_saturn_report() local
265 for (j = 0; j < tmp && n < max_pads; j += 10, n++) { in db9_saturn_report()
267 switch (data[j]) { in db9_saturn_report()
269 input_report_abs(dev, db9_abs[5], data[j + 6]); in db9_saturn_report()
272 input_report_abs(dev, db9_abs[3], data[j + 4]); in db9_saturn_report()
273 input_report_abs(dev, db9_abs[4], data[j + 5]); in db9_saturn_report()
276 input_report_abs(dev, db9_abs[2], data[j + 3]); in db9_saturn_report()
[all …]
/drivers/tty/ipwireless/
Dtty.c437 static int add_tty(int j, in add_tty() argument
442 ttys[j] = kzalloc(sizeof(struct ipw_tty), GFP_KERNEL); in add_tty()
443 if (!ttys[j]) in add_tty()
445 ttys[j]->index = j; in add_tty()
446 ttys[j]->hardware = hardware; in add_tty()
447 ttys[j]->channel_idx = channel_idx; in add_tty()
448 ttys[j]->secondary_channel_idx = secondary_channel_idx; in add_tty()
449 ttys[j]->network = network; in add_tty()
450 ttys[j]->tty_type = tty_type; in add_tty()
451 mutex_init(&ttys[j]->ipw_tty_mutex); in add_tty()
[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/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/hid/intel-ish-hid/ishtp/
Ddma-if.c102 int i, j, free; in ishtp_cl_get_dma_send_buf() local
115 for (j = 0; j < required_slots; j++) in ishtp_cl_get_dma_send_buf()
116 if (dev->ishtp_dma_tx_map[i+j]) { in ishtp_cl_get_dma_send_buf()
118 i += j; in ishtp_cl_get_dma_send_buf()
123 for (j = 0; j < required_slots; j++) in ishtp_cl_get_dma_send_buf()
124 dev->ishtp_dma_tx_map[i+j] = 1; in ishtp_cl_get_dma_send_buf()
151 int i, j; in ishtp_cl_release_dma_acked_mem() local
165 for (j = 0; j < acked_slots; j++) { in ishtp_cl_release_dma_acked_mem()
166 if ((i + j) >= dev->ishtp_dma_num_slots || in ishtp_cl_release_dma_acked_mem()
167 !dev->ishtp_dma_tx_map[i+j]) { in ishtp_cl_release_dma_acked_mem()
[all …]
/drivers/gpu/drm/amd/include/
Damd_pcie_helpers.h79 int i, j; in get_pcie_lane_support() local
114 for (j = i - 1; j >= 0; j--) { in get_pcie_lane_support()
115 if (pcie_lane_width_cap & (0x10000 << j)) { in get_pcie_lane_support()
116 new_pcie_lanes = pcie_lanes[j]; in get_pcie_lane_support()
121 if (j < 0) { in get_pcie_lane_support()
122 for (j = i + 1; j < 7; j++) { in get_pcie_lane_support()
123 if (pcie_lane_width_cap & (0x10000 << j)) { in get_pcie_lane_support()
124 new_pcie_lanes = pcie_lanes[j]; in get_pcie_lane_support()
128 if (j > 7) in get_pcie_lane_support()
/drivers/scsi/isci/
Dprobe_roms.c46 int j; in isci_request_oprom() local
81 for (j = 0, sum = 0; j < sizeof(oem_hdr); j++, tmp++) in isci_request_oprom()
85 for (j = 0; j < sizeof(*rom); j++, tmp++) in isci_request_oprom()
118 int i, j; in isci_request_firmware() local
146 for (j = 0; j < ARRAY_SIZE(orom->ctrl[i].phys); j++) { in isci_request_firmware()
147 orom->ctrl[i].phys[j].afe_tx_amp_control0 = 0xe7c03; in isci_request_firmware()
148 orom->ctrl[i].phys[j].afe_tx_amp_control1 = 0xe7c03; in isci_request_firmware()
149 orom->ctrl[i].phys[j].afe_tx_amp_control2 = 0xe7c03; in isci_request_firmware()
150 orom->ctrl[i].phys[j].afe_tx_amp_control3 = 0xe7c03; in isci_request_firmware()
173 int j; in isci_get_efi_var() local
[all …]
/drivers/tty/vt/
Dconsolemap.c201 int j, glyph; in set_inverse_transl() local
214 for (j = 0; j < E_TABSZ; j++) { in set_inverse_transl()
215 glyph = conv_uni_to_pc(conp, t[j]); in set_inverse_transl()
218 q[glyph] = j; in set_inverse_transl()
226 int i, j, k, glyph; in set_inverse_trans_unicode() local
244 for (j = 0; j < 32; j++) { in set_inverse_trans_unicode()
245 p2 = p1[j]; in set_inverse_trans_unicode()
252 q[glyph] = (i << 11) + (j << 6) + k; in set_inverse_trans_unicode()
399 int i, j; in con_release_unimap() local
405 for (j = 0; j < 32; j++) in con_release_unimap()
[all …]
/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c227 int i, j; in vmxnet3_get_strings() local
228 for (j = 0; j < adapter->num_tx_queues; j++) { in vmxnet3_get_strings()
242 for (j = 0; j < adapter->num_rx_queues; j++) { in vmxnet3_get_strings()
402 int j = 0; in vmxnet3_get_ethtool_stats() local
409 for (j = 0; j < adapter->num_tx_queues; j++) { in vmxnet3_get_ethtool_stats()
410 base = (u8 *)&adapter->tqd_start[j].stats; in vmxnet3_get_ethtool_stats()
411 *buf++ = (u64)j; in vmxnet3_get_ethtool_stats()
416 base = (u8 *)&adapter->tx_queue[j].stats; in vmxnet3_get_ethtool_stats()
422 for (j = 0; j < adapter->num_rx_queues; j++) { in vmxnet3_get_ethtool_stats()
423 base = (u8 *)&adapter->rqd_start[j].stats; in vmxnet3_get_ethtool_stats()
[all …]
/drivers/staging/rtl8723bs/core/
Drtw_security.c170 sint i, j; in crc32_init() local
179 for (c = ((u32)k) << 24, j = 8; j > 0; --j) { in crc32_init()
1298 uint qc_exists, a4_exists, i, j, payload_remainder, in aes_cipher() local
1403 for (j = 0; j < 16; j++) in aes_cipher()
1404 padded_buffer[j] = 0x00; in aes_cipher()
1405 for (j = 0; j < payload_remainder; j++) { in aes_cipher()
1406 padded_buffer[j] = pframe[payload_index++]; in aes_cipher()
1412 for (j = 0 ; j < 8; j++) in aes_cipher()
1413 mic[j] = aes_out[j]; in aes_cipher()
1416 for (j = 0; j < 8; j++) in aes_cipher()
[all …]

12345678910>>...68