Home
last modified time | relevance | path

Searched refs:i (Results 1 – 200 of 12395) sorted by relevance

12345678910>>...62

/linux-4.4.14/sound/soc/fsl/
Dfsl_asrc.h38 #define REG_ASRCDR(i) ((i < 2) ? REG_ASRCDR1 : REG_ASRCDR2) argument
58 #define REG_ASRDI(i) (REG_ASRDIA + (i << 3)) argument
59 #define REG_ASRDO(i) (REG_ASRDOA + (i << 3)) argument
60 #define REG_ASRDx(x, i) (x == IN ? REG_ASRDI(i) : REG_ASRDO(i)) argument
68 #define REG_ASRIDRH(i) (REG_ASRIDRHA + (i << 3)) argument
69 #define REG_ASRIDRL(i) (REG_ASRIDRLA + (i << 3)) argument
80 #define REG_ASRMCR(i) (REG_ASRMCRA + (i << 3)) argument
81 #define REG_ASRFST(i) (REG_ASRFSTA + (i << 3)) argument
86 #define REG_ASRMCR1(i) (REG_ASRMCR1A + (i << 2)) argument
90 #define ASRCTR_ATSi_SHIFT(i) (20 + i) argument
[all …]
/linux-4.4.14/sound/pci/au88x0/
Dau88x0_xtalk.c257 int i; in vortex_XtalkHw_SetLeftEQ() local
259 for (i = 0; i < 5; i++) { in vortex_XtalkHw_SetLeftEQ()
260 hwwrite(vortex->mmio, 0x24200 + i * 0x24, coefs[i][0]); in vortex_XtalkHw_SetLeftEQ()
261 hwwrite(vortex->mmio, 0x24204 + i * 0x24, coefs[i][1]); in vortex_XtalkHw_SetLeftEQ()
262 hwwrite(vortex->mmio, 0x24208 + i * 0x24, coefs[i][2]); in vortex_XtalkHw_SetLeftEQ()
263 hwwrite(vortex->mmio, 0x2420c + i * 0x24, coefs[i][3]); in vortex_XtalkHw_SetLeftEQ()
264 hwwrite(vortex->mmio, 0x24210 + i * 0x24, coefs[i][4]); in vortex_XtalkHw_SetLeftEQ()
274 int i; in vortex_XtalkHw_SetRightEQ() local
276 for (i = 0; i < 5; i++) { in vortex_XtalkHw_SetRightEQ()
277 hwwrite(vortex->mmio, 0x242b4 + i * 0x24, coefs[i][0]); in vortex_XtalkHw_SetRightEQ()
[all …]
/linux-4.4.14/arch/x86/include/asm/
Dxor.h63 #define BLK64(pf, op, i) \ argument
64 pf(i) \
65 op(i, 0) \
66 op(i + 1, 1) \
67 op(i + 2, 2) \
68 op(i + 3, 3)
79 #define BLOCK(i) \ in xor_sse_2() argument
80 LD(i, 0) \ in xor_sse_2()
81 LD(i + 1, 1) \ in xor_sse_2()
82 PF1(i) \ in xor_sse_2()
[all …]
Dxor_32.h40 #define BLOCK(i) \ in xor_pII_mmx_2() argument
41 LD(i, 0) \ in xor_pII_mmx_2()
42 LD(i + 1, 1) \ in xor_pII_mmx_2()
43 LD(i + 2, 2) \ in xor_pII_mmx_2()
44 LD(i + 3, 3) \ in xor_pII_mmx_2()
45 XO1(i, 0) \ in xor_pII_mmx_2()
46 ST(i, 0) \ in xor_pII_mmx_2()
47 XO1(i+1, 1) \ in xor_pII_mmx_2()
48 ST(i+1, 1) \ in xor_pII_mmx_2()
49 XO1(i + 2, 2) \ in xor_pII_mmx_2()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_reg.h39 #define NV10_PFB_TILE(i) (0x00100240 + (i*16)) argument
41 #define NV10_PFB_TLIMIT(i) (0x00100244 + (i*16)) argument
42 #define NV10_PFB_TSIZE(i) (0x00100248 + (i*16)) argument
43 #define NV10_PFB_TSTATUS(i) (0x0010024c + (i*16)) argument
48 #define NV20_PFB_ZCOMP(i) (0x00100300 + 4*(i)) argument
54 #define NV04_PFB_SCRAMBLE(i) (0x00100400 + 4 * (i)) argument
55 #define NV40_PFB_TILE(i) (0x00100600 + (i*16)) argument
58 #define NV40_PFB_TLIMIT(i) (0x00100604 + (i*16)) argument
59 #define NV40_PFB_TSIZE(i) (0x00100608 + (i*16)) argument
60 #define NV40_PFB_TSTATUS(i) (0x0010060c + (i*16)) argument
[all …]
/linux-4.4.14/drivers/clk/mmp/
Dclk.c29 int i; in mmp_register_fixed_rate_clks() local
32 for (i = 0; i < size; i++) { in mmp_register_fixed_rate_clks()
33 clk = clk_register_fixed_rate(NULL, clks[i].name, in mmp_register_fixed_rate_clks()
34 clks[i].parent_name, in mmp_register_fixed_rate_clks()
35 clks[i].flags, in mmp_register_fixed_rate_clks()
36 clks[i].fixed_rate); in mmp_register_fixed_rate_clks()
39 __func__, clks[i].name); in mmp_register_fixed_rate_clks()
42 if (clks[i].id) in mmp_register_fixed_rate_clks()
43 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_rate_clks()
52 int i; in mmp_register_fixed_factor_clks() local
[all …]
/linux-4.4.14/drivers/clk/hisilicon/
Dclk.c79 int i; in hisi_clk_register_fixed_rate() local
81 for (i = 0; i < nums; i++) { in hisi_clk_register_fixed_rate()
82 clk = clk_register_fixed_rate(NULL, clks[i].name, in hisi_clk_register_fixed_rate()
83 clks[i].parent_name, in hisi_clk_register_fixed_rate()
84 clks[i].flags, in hisi_clk_register_fixed_rate()
85 clks[i].fixed_rate); in hisi_clk_register_fixed_rate()
88 __func__, clks[i].name); in hisi_clk_register_fixed_rate()
91 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_fixed_rate()
100 int i; in hisi_clk_register_fixed_factor() local
102 for (i = 0; i < nums; i++) { in hisi_clk_register_fixed_factor()
[all …]
/linux-4.4.14/lib/reed_solomon/
Ddecode_rs.c21 int i, j, r, k, pad; variable
50 for (i = 0; i < nroots; i++)
51 syn[i] = (((uint16_t) data[0]) ^ invmsk) & msk;
54 for (i = 0; i < nroots; i++) {
55 if (syn[i] == 0) {
56 syn[i] = (((uint16_t) data[j]) ^
59 syn[i] = ((((uint16_t) data[j]) ^
61 alpha_to[rs_modnn(rs, index_of[syn[i]] +
62 (fcr + i) * prim)];
68 for (i = 0; i < nroots; i++) {
[all …]
/linux-4.4.14/drivers/isdn/mISDN/
Ddsp_audio.c77 int i; in alaw2linear() local
81 i = ((alaw & 0x0F) << 4) + 8 /* rounding error */; in alaw2linear()
84 i = (i + 0x100) << (seg - 1); in alaw2linear()
85 return (short int) ((alaw & 0x80) ? i : -i); in alaw2linear()
143 int i; in dsp_audio_generate_law_tables() local
144 for (i = 0; i < 256; i++) in dsp_audio_generate_law_tables()
145 dsp_audio_alaw_to_s32[i] = alaw2linear(bitrev8((u8)i)); in dsp_audio_generate_law_tables()
147 for (i = 0; i < 256; i++) in dsp_audio_generate_law_tables()
148 dsp_audio_ulaw_to_s32[i] = ulaw2linear(bitrev8((u8)i)); in dsp_audio_generate_law_tables()
150 for (i = 0; i < 256; i++) { in dsp_audio_generate_law_tables()
[all …]
/linux-4.4.14/arch/arm/mach-pxa/
Dmfp-pxa2xx.c138 int i, gpio; in pxa2xx_mfp_config() local
140 for (i = 0, c = mfp_cfgs; i < num; i++, c++) { in pxa2xx_mfp_config()
228 int i; in pxa25x_mfp_init() local
236 for (i = 0; i <= pxa_last_gpio; i++) in pxa25x_mfp_init()
237 gpio_desc[i].valid = 1; in pxa25x_mfp_init()
239 for (i = 0; i <= 15; i++) { in pxa25x_mfp_init()
240 gpio_desc[i].can_wakeup = 1; in pxa25x_mfp_init()
241 gpio_desc[i].mask = GPIO_bit(i); in pxa25x_mfp_init()
247 for (i = 86; i <= pxa_last_gpio; i++) in pxa25x_mfp_init()
248 gpio_desc[i].dir_inverted = 1; in pxa25x_mfp_init()
[all …]
Dam300epd.c109 int i; in am300_init_gpio_regs() local
113 for (i = 0; i < ARRAY_SIZE(gpios); i++) { in am300_init_gpio_regs()
114 err = gpio_request(gpios[i], gpio_names[i]); in am300_init_gpio_regs()
117 "gpio %s, err=%d\n", gpio_names[i], err); in am300_init_gpio_regs()
123 for (i = DB0_GPIO_PIN; i <= DB15_GPIO_PIN; i++) { in am300_init_gpio_regs()
124 sprintf(dbname, "DB%d", i); in am300_init_gpio_regs()
125 err = gpio_request(i, dbname); in am300_init_gpio_regs()
128 "gpio %d, err=%d\n", i, err); in am300_init_gpio_regs()
147 for (i = DB0_GPIO_PIN; i <= DB15_GPIO_PIN; i++) in am300_init_gpio_regs()
148 gpio_direction_output(i, 0); in am300_init_gpio_regs()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Deeprom.c54 u16 i; in ath9k_hw_get_lower_upper_index() local
65 for (i = 0; i < listSize - 1; i++) { in ath9k_hw_get_lower_upper_index()
66 if (pList[i] == target) { in ath9k_hw_get_lower_upper_index()
67 *indexL = *indexR = i; in ath9k_hw_get_lower_upper_index()
70 if (target < pList[i + 1]) { in ath9k_hw_get_lower_upper_index()
71 *indexL = i; in ath9k_hw_get_lower_upper_index()
72 *indexR = (u16) (i + 1); in ath9k_hw_get_lower_upper_index()
82 int i = 0, j, addr; in ath9k_hw_usb_gen_fill_eeprom() local
87 addrdata[i] = AR5416_EEPROM_OFFSET + in ath9k_hw_usb_gen_fill_eeprom()
89 i++; in ath9k_hw_usb_gen_fill_eeprom()
[all …]
Dar9003_aic.c59 int16_t i; in ar9003_aic_find_valid() local
62 for (i = index + 1; i < ATH_AIC_MAX_BT_CHANNEL; i++) { in ar9003_aic_find_valid()
63 if (cal_sram[i].valid) in ar9003_aic_find_valid()
67 for (i = index - 1; i >= 0; i--) { in ar9003_aic_find_valid()
68 if (cal_sram[i].valid) in ar9003_aic_find_valid()
73 if ((i >= ATH_AIC_MAX_BT_CHANNEL) || (i < 0)) in ar9003_aic_find_valid()
74 i = -1; in ar9003_aic_find_valid()
76 return i; in ar9003_aic_find_valid()
84 int16_t i = -1; in ar9003_aic_find_index() local
87 for (i = ATH_AIC_MAX_AIC_LIN_TABLE - 1; i >= 0; i--) { in ar9003_aic_find_index()
[all …]
Dcalib.c28 int i, j; in ath9k_hw_get_nf_hist_mid() local
30 for (i = 0; i < ATH9K_NF_CAL_HIST_MAX; i++) in ath9k_hw_get_nf_hist_mid()
31 sort[i] = nfCalBuffer[i]; in ath9k_hw_get_nf_hist_mid()
33 for (i = 0; i < ATH9K_NF_CAL_HIST_MAX - 1; i++) { in ath9k_hw_get_nf_hist_mid()
34 for (j = 1; j < ATH9K_NF_CAL_HIST_MAX - i; j++) { in ath9k_hw_get_nf_hist_mid()
90 int i; in ath9k_hw_update_nfcal_hist_buffer() local
95 for (i = 0; i < NUM_NF_READINGS; i++) { in ath9k_hw_update_nfcal_hist_buffer()
96 if (!(chainmask & (1 << i)) || in ath9k_hw_update_nfcal_hist_buffer()
97 ((i >= AR5416_MAX_CHAINS) && !IS_CHAN_HT40(ah->curchan))) in ath9k_hw_update_nfcal_hist_buffer()
100 h[i].nfCalBuffer[h[i].currIndex] = nfarray[i]; in ath9k_hw_update_nfcal_hist_buffer()
[all …]
Dar9003_paprd.c152 int i, val; in ar9003_paprd_setup_single_table() local
183 for (i = 0; i < ah->caps.max_txchains; i++) { in ar9003_paprd_setup_single_table()
184 REG_RMW_FIELD(ah, ctrl0[i], in ar9003_paprd_setup_single_table()
186 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table()
188 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table()
190 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table()
192 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table()
194 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table()
196 REG_RMW_FIELD(ah, ctrl1[i], in ar9003_paprd_setup_single_table()
198 REG_RMW_FIELD(ah, ctrl0[i], in ar9003_paprd_setup_single_table()
[all …]
Dar9002_calib.c95 int i, numChains = 0; in ar9002_hw_per_calibration() local
96 for (i = 0; i < AR5416_MAX_CHAINS; i++) { in ar9002_hw_per_calibration()
97 if (rxchainmask & (1 << i)) in ar9002_hw_per_calibration()
118 int i; in ar9002_hw_iqcal_collect() local
120 for (i = 0; i < AR5416_MAX_CHAINS; i++) { in ar9002_hw_iqcal_collect()
121 ah->totalPowerMeasI[i] += in ar9002_hw_iqcal_collect()
122 REG_READ(ah, AR_PHY_CAL_MEAS_0(i)); in ar9002_hw_iqcal_collect()
123 ah->totalPowerMeasQ[i] += in ar9002_hw_iqcal_collect()
124 REG_READ(ah, AR_PHY_CAL_MEAS_1(i)); in ar9002_hw_iqcal_collect()
125 ah->totalIqCorrMeas[i] += in ar9002_hw_iqcal_collect()
[all …]
/linux-4.4.14/fs/hpfs/
Dinode.c13 void hpfs_init_inode(struct inode *i) in hpfs_init_inode() argument
15 struct super_block *sb = i->i_sb; in hpfs_init_inode()
16 struct hpfs_inode_info *hpfs_inode = hpfs_i(i); in hpfs_init_inode()
18 i->i_uid = hpfs_sb(sb)->sb_uid; in hpfs_init_inode()
19 i->i_gid = hpfs_sb(sb)->sb_gid; in hpfs_init_inode()
20 i->i_mode = hpfs_sb(sb)->sb_mode; in hpfs_init_inode()
21 i->i_size = -1; in hpfs_init_inode()
22 i->i_blocks = -1; in hpfs_init_inode()
38 i->i_ctime.tv_sec = i->i_ctime.tv_nsec = 0; in hpfs_init_inode()
39 i->i_mtime.tv_sec = i->i_mtime.tv_nsec = 0; in hpfs_init_inode()
[all …]
Dname.c43 int i; in hpfs_chk_name() local
47 for (i = 0; i < *len; i++) if (not_allowed_char(name[i])) return -EINVAL; in hpfs_chk_name()
57 int i; in hpfs_translate_name() local
60 for (i = 0; i < len; i++) in hpfs_translate_name()
61 pr_cont("%c", from[i]); in hpfs_translate_name()
70 for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]); in hpfs_translate_name()
79 unsigned i; in hpfs_compare_names() local
81 for (i = 0; i < l; i++) { in hpfs_compare_names()
82 unsigned char c1 = upcase(hpfs_sb(s)->sb_cp_table,n1[i]); in hpfs_compare_names()
83 unsigned char c2 = upcase(hpfs_sb(s)->sb_cp_table,n2[i]); in hpfs_compare_names()
[all …]
/linux-4.4.14/include/sound/
Dpcm_params.h38 #define MASK_OFS(i) ((i) >> 5) argument
39 #define MASK_BIT(i) (1U << ((i) & 31)) argument
58 int i; in snd_mask_empty() local
59 for (i = 0; i < SNDRV_MASK_SIZE; i++) in snd_mask_empty()
60 if (mask->bits[i]) in snd_mask_empty()
67 int i; in snd_mask_min() local
68 for (i = 0; i < SNDRV_MASK_SIZE; i++) { in snd_mask_min()
69 if (mask->bits[i]) in snd_mask_min()
70 return __ffs(mask->bits[i]) + (i << 5); in snd_mask_min()
77 int i; in snd_mask_max() local
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_82599.c54 u8 i = 0; in ixgbe_dcb_config_rx_arbiter_82599() local
65 for (i = 0; i < MAX_USER_PRIORITY; i++) in ixgbe_dcb_config_rx_arbiter_82599()
66 reg |= (prio_tc[i] << (i * IXGBE_RTRUP2TC_UP_SHIFT)); in ixgbe_dcb_config_rx_arbiter_82599()
70 for (i = 0; i < MAX_TRAFFIC_CLASS; i++) { in ixgbe_dcb_config_rx_arbiter_82599()
71 credit_refill = refill[i]; in ixgbe_dcb_config_rx_arbiter_82599()
72 credit_max = max[i]; in ixgbe_dcb_config_rx_arbiter_82599()
75 reg |= (u32)(bwg_id[i]) << IXGBE_RTRPT4C_BWG_SHIFT; in ixgbe_dcb_config_rx_arbiter_82599()
77 if (prio_type[i] == prio_link) in ixgbe_dcb_config_rx_arbiter_82599()
80 IXGBE_WRITE_REG(hw, IXGBE_RTRPT4C(i), reg); in ixgbe_dcb_config_rx_arbiter_82599()
110 u8 i; in ixgbe_dcb_config_tx_desc_arbiter_82599() local
[all …]
Dixgbe_dcb_82598.c49 u8 i = 0; in ixgbe_dcb_config_rx_arbiter_82598() local
65 for (i = 0; i < MAX_TRAFFIC_CLASS; i++) { in ixgbe_dcb_config_rx_arbiter_82598()
66 credit_refill = refill[i]; in ixgbe_dcb_config_rx_arbiter_82598()
67 credit_max = max[i]; in ixgbe_dcb_config_rx_arbiter_82598()
71 if (prio_type[i] == prio_link) in ixgbe_dcb_config_rx_arbiter_82598()
74 IXGBE_WRITE_REG(hw, IXGBE_RT2CR(i), reg); in ixgbe_dcb_config_rx_arbiter_82598()
105 u8 i; in ixgbe_dcb_config_tx_desc_arbiter_82598() local
119 for (i = 0; i < MAX_TRAFFIC_CLASS; i++) { in ixgbe_dcb_config_tx_desc_arbiter_82598()
120 max_credits = max[i]; in ixgbe_dcb_config_tx_desc_arbiter_82598()
122 reg |= refill[i]; in ixgbe_dcb_config_tx_desc_arbiter_82598()
[all …]
Dixgbe_ethtool.c463 u8 i; in ixgbe_get_regs() local
514 for (i = 0; i < 8; i++) { in ixgbe_get_regs()
517 regs_buff[35 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTL(i)); in ixgbe_get_regs()
518 regs_buff[43 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTH(i)); in ixgbe_get_regs()
524 regs_buff[35 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTL_82599(i)); in ixgbe_get_regs()
525 regs_buff[43 + i] = IXGBE_READ_REG(hw, IXGBE_FCRTH_82599(i)); in ixgbe_get_regs()
535 for (i = 0; i < 64; i++) in ixgbe_get_regs()
536 regs_buff[53 + i] = IXGBE_READ_REG(hw, IXGBE_RDBAL(i)); in ixgbe_get_regs()
537 for (i = 0; i < 64; i++) in ixgbe_get_regs()
538 regs_buff[117 + i] = IXGBE_READ_REG(hw, IXGBE_RDBAH(i)); in ixgbe_get_regs()
[all …]
/linux-4.4.14/arch/x86/oprofile/
Dop_model_ppro.c35 int i; in ppro_shutdown() local
37 for (i = 0; i < num_counters; ++i) { in ppro_shutdown()
38 if (!msrs->counters[i].addr) in ppro_shutdown()
40 release_perfctr_nmi(MSR_P6_PERFCTR0 + i); in ppro_shutdown()
41 release_evntsel_nmi(MSR_P6_EVNTSEL0 + i); in ppro_shutdown()
47 int i; in ppro_fill_in_addresses() local
49 for (i = 0; i < num_counters; i++) { in ppro_fill_in_addresses()
50 if (!reserve_perfctr_nmi(MSR_P6_PERFCTR0 + i)) in ppro_fill_in_addresses()
52 if (!reserve_evntsel_nmi(MSR_P6_EVNTSEL0 + i)) { in ppro_fill_in_addresses()
53 release_perfctr_nmi(MSR_P6_PERFCTR0 + i); in ppro_fill_in_addresses()
[all …]
Dop_model_p4.c384 #define VIRT_CTR(stagger, i) ((i) + ((num_counters) * (stagger))) argument
390 int i; in p4_shutdown() local
392 for (i = 0; i < num_counters; ++i) { in p4_shutdown()
393 if (msrs->counters[i].addr) in p4_shutdown()
394 release_perfctr_nmi(msrs->counters[i].addr); in p4_shutdown()
401 for (i = num_counters; i < num_controls; ++i) { in p4_shutdown()
402 if (msrs->controls[i].addr) in p4_shutdown()
403 release_evntsel_nmi(msrs->controls[i].addr); in p4_shutdown()
409 unsigned int i; in p4_fill_in_addresses() local
416 for (i = 0; i < num_counters; ++i) { in p4_fill_in_addresses()
[all …]
Dop_model_amd.c273 int i; in op_mux_switch_ctrl() local
276 for (i = 0; i < num_counters; ++i) { in op_mux_switch_ctrl()
277 int virt = op_x86_phys_to_virt(i); in op_mux_switch_ctrl()
280 rdmsrl(msrs->controls[i].addr, val); in op_mux_switch_ctrl()
283 wrmsrl(msrs->controls[i].addr, val); in op_mux_switch_ctrl()
293 int i; in op_amd_shutdown() local
295 for (i = 0; i < num_counters; ++i) { in op_amd_shutdown()
296 if (!msrs->counters[i].addr) in op_amd_shutdown()
298 release_perfctr_nmi(MSR_K7_PERFCTR0 + i); in op_amd_shutdown()
299 release_evntsel_nmi(MSR_K7_EVNTSEL0 + i); in op_amd_shutdown()
[all …]
Dnmi_int.c79 unsigned int i; in nmi_cpu_save_registers() local
81 for (i = 0; i < model->num_counters; ++i) { in nmi_cpu_save_registers()
82 if (counters[i].addr) in nmi_cpu_save_registers()
83 rdmsrl(counters[i].addr, counters[i].saved); in nmi_cpu_save_registers()
86 for (i = 0; i < model->num_controls; ++i) { in nmi_cpu_save_registers()
87 if (controls[i].addr) in nmi_cpu_save_registers()
88 rdmsrl(controls[i].addr, controls[i].saved); in nmi_cpu_save_registers()
150 int i; in nmi_shutdown_mux() local
155 for_each_possible_cpu(i) { in nmi_shutdown_mux()
156 kfree(per_cpu(cpu_msrs, i).multiplex); in nmi_shutdown_mux()
[all …]
/linux-4.4.14/scripts/
Dkallsyms.c94 size_t i; in check_symbol_range() local
97 for (i = 0; i < entries; ++i) { in check_symbol_range()
98 ar = &ranges[i]; in check_symbol_range()
183 size_t i; in symbol_in_range() local
186 for (i = 0; i < entries; ++i) { in symbol_in_range()
187 ar = &ranges[i]; in symbol_in_range()
220 int i; in symbol_valid() local
254 for (i = 0; special_symbols[i]; i++) in symbol_valid()
255 if (strcmp(sym_name, special_symbols[i]) == 0) in symbol_valid()
258 for (i = 0; special_suffixes[i]; i++) { in symbol_valid()
[all …]
Dpnmtologo.c128 unsigned int i, j; in read_image() local
166 for (i = 0; i < logo_height; i++) { in read_image()
167 logo_data[i] = malloc(logo_width*sizeof(struct color)); in read_image()
168 if (!logo_data[i]) in read_image()
177 for (i = 0; i < logo_height; i++) 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()
186 for (i = 0; i < logo_height; i++) 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()
[all …]
Dconmakehash.c54 int i; in addpair() local
60 for ( i = 0 ; i < unicount[fp] ; i++ ) in addpair()
61 if ( unitable[fp][i] == un ) in addpair()
85 int i, nuni, nent; in main() local
112 for ( i = 0 ; i < fontlen ; i++ ) in main()
113 unicount[i] = 0; in main()
189 for (i=fp0; i<=fp1; i++) in main()
190 addpair(i,i); in main()
221 for(i=fp0; i<=fp1; i++) in main()
222 addpair(i,un0-fp0+i); in main()
[all …]
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Ddebug.c33 int i; in emac_desc_dump() local
38 for (i = 0; i < NUM_TX_BUFF / 2; ++i) in emac_desc_dump()
41 i, p->tx_desc[i].data_ptr, p->tx_skb[i] ? 'V' : ' ', in emac_desc_dump()
42 p->tx_desc[i].ctrl, p->tx_desc[i].data_len, in emac_desc_dump()
43 NUM_TX_BUFF / 2 + i, in emac_desc_dump()
44 p->tx_desc[NUM_TX_BUFF / 2 + i].data_ptr, in emac_desc_dump()
45 p->tx_skb[NUM_TX_BUFF / 2 + i] ? 'V' : ' ', in emac_desc_dump()
46 p->tx_desc[NUM_TX_BUFF / 2 + i].ctrl, in emac_desc_dump()
47 p->tx_desc[NUM_TX_BUFF / 2 + i].data_len); in emac_desc_dump()
55 for (i = 0; i < NUM_RX_BUFF / 2; ++i) in emac_desc_dump()
[all …]
/linux-4.4.14/arch/sparc/kernel/
Dkgdb_32.c20 int i; in pt_regs_to_gdb_regs() local
23 for (i = 0; i < 15; i++) in pt_regs_to_gdb_regs()
24 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs()
27 for (i = 0; i < 8; i++) in pt_regs_to_gdb_regs()
28 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs()
29 for (i = 0; i < 8; i++) in pt_regs_to_gdb_regs()
30 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs()
32 for (i = GDB_F0; i <= GDB_F31; i++) in pt_regs_to_gdb_regs()
33 gdb_regs[i] = 0; in pt_regs_to_gdb_regs()
49 int i; in sleeping_thread_to_gdb_regs() local
[all …]
Dkgdb_64.c21 int i; in pt_regs_to_gdb_regs() local
24 for (i = 0; i < 15; i++) in pt_regs_to_gdb_regs()
25 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs()
28 for (i = 0; i < 8; i++) in pt_regs_to_gdb_regs()
29 gdb_regs[GDB_L0 + i] = win->locals[i]; in pt_regs_to_gdb_regs()
30 for (i = 0; i < 8; i++) in pt_regs_to_gdb_regs()
31 gdb_regs[GDB_I0 + i] = win->ins[i]; in pt_regs_to_gdb_regs()
33 for (i = GDB_F0; i <= GDB_F62; i++) in pt_regs_to_gdb_regs()
34 gdb_regs[i] = 0; in pt_regs_to_gdb_regs()
51 int i; in sleeping_thread_to_gdb_regs() local
[all …]
/linux-4.4.14/drivers/input/joystick/
Dcobra.c62 int i, j, ret; in cobra_read_packet() local
66 for (i = 0; i < 2; i++) { in cobra_read_packet()
67 r[i] = buf[i] = 0; in cobra_read_packet()
68 t[i] = COBRA_MAX_STROBE; in cobra_read_packet()
78 for (i = 0, w = u ^ v; i < 2 && w; i++, w >>= 2) in cobra_read_packet()
80 if ((w & 0x30) < 0x30 && r[i] < COBRA_LENGTH && t[i] > 0) { in cobra_read_packet()
81 buf[i] |= (__u64)((w >> 5) & 1) << r[i]++; in cobra_read_packet()
82 t[i] = strobe; in cobra_read_packet()
84 } else t[i] = 0; in cobra_read_packet()
92 for (i = 0; i < 2; i++) { in cobra_read_packet()
[all …]
Damijoy.c56 int i, data = 0, button = 0; in amijoy_interrupt() local
58 for (i = 0; i < 2; i++) in amijoy_interrupt()
59 if (amijoy[i]) { in amijoy_interrupt()
61 switch (i) { in amijoy_interrupt()
66 input_report_key(amijoy_dev[i], BTN_TRIGGER, button); in amijoy_interrupt()
68 input_report_abs(amijoy_dev[i], ABS_X, ((data >> 1) & 1) - ((data >> 9) & 1)); in amijoy_interrupt()
70 input_report_abs(amijoy_dev[i], ABS_Y, ((data >> 1) & 1) - ((data >> 9) & 1)); in amijoy_interrupt()
72 input_sync(amijoy_dev[i]); in amijoy_interrupt()
107 int i, j; in amijoy_init() local
113 for (i = 0; i < 2; i++) { in amijoy_init()
[all …]
Dgamecon.c153 int i; in gc_n64_send_command() local
155 for (i = 0; i < GC_N64_LENGTH; i++) { in gc_n64_send_command()
156 unsigned char data = (cmd >> i) & 1 ? target : 0; in gc_n64_send_command()
166 int i; in gc_n64_send_stop_bit() local
168 for (i = 0; i < GC_N64_STOP_LENGTH; i++) { in gc_n64_send_stop_bit()
169 unsigned char data = (GC_N64_STOP_BIT >> i) & 1 ? target : 0; in gc_n64_send_stop_bit()
183 int i; in gc_n64_read_packet() local
206 for (i = 0; i < GC_N64_LENGTH; i++) { in gc_n64_read_packet()
209 data[i] = parport_read_status(gc->pd->port); in gc_n64_read_packet()
225 int i, j, s; in gc_n64_process_packet() local
[all …]
Dadi.c143 int t[2], s[2], i; in adi_read_packet() local
146 for (i = 0; i < 2; i++) { in adi_read_packet()
147 adi[i].ret = -1; in adi_read_packet()
148 t[i] = gameport_time(gameport, ADI_MAX_START); in adi_read_packet()
149 s[i] = 0; in adi_read_packet()
160 for (i = 0; i < 2; i++, w >>= 2, x >>= 2) { in adi_read_packet()
161 t[i]--; in adi_read_packet()
162 if ((w & 0x30) && s[i]) { in adi_read_packet()
163 if ((w & 0x30) < 0x30 && adi[i].ret < ADI_MAX_LENGTH && t[i] > 0) { in adi_read_packet()
164 adi[i].data[++adi[i].ret] = w; in adi_read_packet()
[all …]
Dinteract.c96 int i; in interact_read_packet() local
98 i = 0; in interact_read_packet()
107 while (t > 0 && i < length) { in interact_read_packet()
114 i++; in interact_read_packet()
121 return i; in interact_read_packet()
133 int i; in interact_poll() local
141 for (i = 0; i < 3; i++) in interact_poll()
142 data[i] <<= INTERACT_MAX_LENGTH - interact->length; in interact_poll()
148 for (i = 0; i < 4; i++) in interact_poll()
149 input_report_abs(dev, interact_abs_hhfx[i], (data[i & 1] >> ((i >> 1) << 3)) & 0xff); in interact_poll()
[all …]
Dgf2k.c97 int i; in gf2k_read_packet() local
104 i = 0; in gf2k_read_packet()
111 while (t > 0 && i < length) { in gf2k_read_packet()
115 data[i++] = v >> 5; in gf2k_read_packet()
122 return i; in gf2k_read_packet()
134 int i, t; in gf2k_trigger_seq() local
138 i = 0; in gf2k_trigger_seq()
143 udelay(seq[i]); in gf2k_trigger_seq()
144 } while (seq[++i]); in gf2k_trigger_seq()
163 int i; in gf2k_get_bits() local
[all …]
Dtmdc.c150 int i[2], j[2], t[2], p, k; in tmdc_read_packet() local
156 i[k] = j[k] = 0; in tmdc_read_packet()
170 if (t[k] <= 0 || i[k] >= TMDC_MAX_LENGTH) continue; in tmdc_read_packet()
174 data[k][i[k]] = 0; j[k]++; continue; in tmdc_read_packet()
178 j[k] = 0; i[k]++; continue; in tmdc_read_packet()
180 data[k][i[k]] |= (~v & 1) << (j[k]++ - 1); /* Data bit */ in tmdc_read_packet()
188 return (i[0] == TMDC_MAX_LENGTH) | ((i[1] == TMDC_MAX_LENGTH) << 1); in tmdc_read_packet()
193 int i, k, l; in tmdc_parse_packet() local
198 for (i = 0; i < port->absc; i++) { in tmdc_parse_packet()
199 if (port->abs[i] < 0) in tmdc_parse_packet()
[all …]
Danalog.c205 int i, j; in analog_decode() local
208 for (i = 0; i < 4; i++) in analog_decode()
209 if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) { in analog_decode()
210 buttons |= 1 << (i + 14); in analog_decode()
214 for (i = j = 0; i < 6; i++) in analog_decode()
215 if (analog->mask & (0x10 << i)) in analog_decode()
216 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); in analog_decode()
219 for (i = 0; i < 4; i++) in analog_decode()
220 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); in analog_decode()
231 for (i = j = 0; i < 4; i++) in analog_decode()
[all …]
Dspaceorb.c80 int i; in spaceorb_process_packet() local
83 for (i = 0; i < spaceorb->idx; i++) c ^= data[i]; in spaceorb_process_packet()
90 for (i = 1; i < spaceorb->idx && spaceorb->data[i] == ' '; i++); in spaceorb_process_packet()
92 dev->name, spaceorb->data + i, spaceorb->phys); in spaceorb_process_packet()
97 for (i = 0; i < 9; i++) spaceorb->data[i+2] ^= spaceorb_xor[i]; in spaceorb_process_packet()
104 for (i = 0; i < 6; i++) in spaceorb_process_packet()
105 input_report_abs(dev, spaceorb_axes[i], axes[i] - ((axes[i] & 0x200) ? 1024 : 0)); in spaceorb_process_packet()
106 for (i = 0; i < 6; i++) in spaceorb_process_packet()
107 input_report_key(dev, spaceorb_buttons[i], (data[1] >> i) & 1); in spaceorb_process_packet()
112 for (i = 0; i < 6; i++) in spaceorb_process_packet()
[all …]
Dsidewinder.c138 int timeout, bitout, sched, i, kick, start, strobe; in sw_read_packet() local
141 i = -id; /* Don't care about data, only want ID */ in sw_read_packet()
164 while ((timeout > 0 || bitout > 0) && (i < length)) { in sw_read_packet()
174 if (i >= 0) /* Want this data */ in sw_read_packet()
175 buf[i] = v >> 5; /* Store it */ in sw_read_packet()
176 i++; /* Advance index */ in sw_read_packet()
186 if (pending && sched < 0 && (i > -SW_END)) { /* Second trigger time */ in sw_read_packet()
199 printk(KERN_DEBUG "sidewinder.c: Read %d triplets. [", i); in sw_read_packet()
200 for (j = 0; j < i; j++) printk("%d", buf[j]); in sw_read_packet()
205 return i; in sw_read_packet()
[all …]
Dturbografx.c96 int data1, data2, i; in tgfx_timer() local
98 for (i = 0; i < 7; i++) in tgfx_timer()
99 if (tgfx->sticks & (1 << i)) { in tgfx_timer()
101 dev = tgfx->dev[i]; in tgfx_timer()
103 parport_write_data(tgfx->pd->port, ~(1 << i)); in tgfx_timer()
165 int i, j, port_idx; in tgfx_attach() local
207 for (i = 0; i < n_devs; i++) { in tgfx_attach()
208 if (n_buttons[i] < 1) in tgfx_attach()
211 if (n_buttons[i] > ARRAY_SIZE(tgfx_buttons)) { in tgfx_attach()
212 printk(KERN_ERR "turbografx.c: Invalid number of buttons %d\n", n_buttons[i]); in tgfx_attach()
[all …]
/linux-4.4.14/tools/testing/selftests/zram/
Dzram_lib.sh37 local i=
38 for i in $(seq 0 $dev_makeswap); do
39 swapoff /dev/zram$i
42 for i in $(seq 0 $dev_mounted); do
43 umount /dev/zram$i
46 for i in $(seq 0 $(($dev_num - 1))); do
47 echo 1 > /sys/block/zram${i}/reset
48 rm -rf zram$i
95 local i=0
97 local sys_path="/sys/block/zram${i}/max_comp_streams"
[all …]
/linux-4.4.14/drivers/infiniband/core/
Dpacker.c67 int i; in ib_pack() local
69 for (i = 0; i < desc_len; ++i) { in ib_pack()
70 if (desc[i].size_bits <= 32) { in ib_pack()
76 shift = 32 - desc[i].offset_bits - desc[i].size_bits; in ib_pack()
77 if (desc[i].struct_size_bytes) in ib_pack()
78 val = value_read(desc[i].struct_offset_bytes, in ib_pack()
79 desc[i].struct_size_bytes, in ib_pack()
84 mask = cpu_to_be32(((1ull << desc[i].size_bits) - 1) << shift); in ib_pack()
85 addr = (__be32 *) buf + desc[i].offset_words; in ib_pack()
87 } else if (desc[i].size_bits <= 64) { in ib_pack()
[all …]
/linux-4.4.14/drivers/media/i2c/cx25840/
Dcx25840-vbi.c73 int i; in decode_vps() local
75 for (i = 0; i < 2 * 13; i += 2) { in decode_vps()
76 err |= biphase_tbl[p[i]] | biphase_tbl[p[i + 1]]; in decode_vps()
77 c = (biphase_tbl[p[i + 1]] & 0xf) | in decode_vps()
78 ((biphase_tbl[p[i]] & 0xf) << 4); in decode_vps()
79 dst[i / 2] = c; in decode_vps()
97 int i; in cx25840_g_sliced_fmt() local
106 for (i = 7; i <= 23; i++) { in cx25840_g_sliced_fmt()
107 u8 v = cx25840_read(client, 0x424 + i - 7); in cx25840_g_sliced_fmt()
109 svbi->service_lines[0][i] = lcr2vbi[v >> 4]; in cx25840_g_sliced_fmt()
[all …]
/linux-4.4.14/arch/x86/mm/
Dtestmmiotrace.c21 static unsigned v16(unsigned i) in v16() argument
23 return i * 12 + 7; in v16()
26 static unsigned v32(unsigned i) in v32() argument
28 return i * 212371 + 13; in v32()
33 unsigned int i; in do_write_test() local
37 for (i = 0; i < 256; i++) in do_write_test()
38 iowrite8(i, p + i); in do_write_test()
40 for (i = 1024; i < (5 * 1024); i += 2) in do_write_test()
41 iowrite16(v16(i), p + i); in do_write_test()
43 for (i = (5 * 1024); i < (16 * 1024); i += 4) in do_write_test()
[all …]
Dpageattr-test.c50 long i, expected, missed = 0; in print_split() local
56 for (i = 0; i < max_pfn_mapped; ) { in print_split()
57 unsigned long addr = (unsigned long)__va(i << PAGE_SHIFT); in print_split()
64 i++; in print_split()
70 i += GPS/PAGE_SIZE; in print_split()
79 i += LPS/PAGE_SIZE; in print_split()
82 i++; in print_split()
101 if (expected != i) { in print_split()
120 int i, k; in pageattr_test() local
135 for (i = 0; i < NTEST; i++) { in pageattr_test()
[all …]
Dnuma_emulation.c23 int i; in emu_find_memblk_by_nid() local
25 for (i = 0; i < mi->nr_blks; i++) in emu_find_memblk_by_nid()
26 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid()
27 return i; in emu_find_memblk_by_nid()
88 int i, ret; in split_nodes_interleave() local
119 for (i = 0; i < pi->nr_blks; i++) in split_nodes_interleave()
120 node_set(pi->blk[i].nid, physnode_mask); in split_nodes_interleave()
127 for_each_node_mask(i, physnode_mask) { in split_nodes_interleave()
132 phys_blk = emu_find_memblk_by_nid(i, pi); in split_nodes_interleave()
134 node_clear(i, physnode_mask); in split_nodes_interleave()
[all …]
/linux-4.4.14/arch/powerpc/net/
Dbpf_jit.h84 #define IMM_H(i) ((uintptr_t)(i)>>16) argument
85 #define IMM_HA(i) (((uintptr_t)(i)>>16) + \ argument
86 (((uintptr_t)(i) & 0x8000) >> 15))
87 #define IMM_L(i) ((uintptr_t)(i) & 0xffff) argument
97 #define PPC_ADDI(d, a, i) EMIT(PPC_INST_ADDI | ___PPC_RT(d) | \ argument
98 ___PPC_RA(a) | IMM_L(i))
100 #define PPC_LI(r, i) PPC_ADDI(r, 0, i) argument
101 #define PPC_ADDIS(d, a, i) EMIT(PPC_INST_ADDIS | \ argument
102 ___PPC_RS(d) | ___PPC_RA(a) | IMM_L(i))
103 #define PPC_LIS(r, i) PPC_ADDIS(r, 0, i) argument
[all …]
/linux-4.4.14/drivers/clk/pistachio/
Dclk.c49 unsigned int i; in pistachio_clk_register_provider() local
51 for (i = 0; i < p->clk_data.clk_num; i++) { in pistachio_clk_register_provider()
52 if (IS_ERR(p->clk_data.clks[i])) in pistachio_clk_register_provider()
53 pr_warn("Failed to register clock %d: %ld\n", i, in pistachio_clk_register_provider()
54 PTR_ERR(p->clk_data.clks[i])); in pistachio_clk_register_provider()
65 unsigned int i; in pistachio_clk_register_gate() local
67 for (i = 0; i < num; i++) { in pistachio_clk_register_gate()
68 clk = clk_register_gate(NULL, gate[i].name, gate[i].parent, in pistachio_clk_register_gate()
70 p->base + gate[i].reg, gate[i].shift, in pistachio_clk_register_gate()
72 p->clk_data.clks[gate[i].id] = clk; in pistachio_clk_register_gate()
[all …]
/linux-4.4.14/arch/mips/lantiq/xway/
Dprom.c43 void __init ltq_soc_detect(struct ltq_soc_info *i) in ltq_soc_detect() argument
45 i->partnum = (ltq_r32(LTQ_MPS_CHIPID) & PART_MASK) >> PART_SHIFT; in ltq_soc_detect()
46 i->rev = (ltq_r32(LTQ_MPS_CHIPID) & REV_MASK) >> REV_SHIFT; in ltq_soc_detect()
47 sprintf(i->rev_type, "1.%d", i->rev); in ltq_soc_detect()
48 switch (i->partnum) { in ltq_soc_detect()
51 i->name = SOC_DANUBE; in ltq_soc_detect()
52 i->type = SOC_TYPE_DANUBE; in ltq_soc_detect()
53 i->compatible = COMP_DANUBE; in ltq_soc_detect()
57 i->name = SOC_TWINPASS; in ltq_soc_detect()
58 i->type = SOC_TYPE_DANUBE; in ltq_soc_detect()
[all …]
/linux-4.4.14/drivers/staging/rtl8723au/hal/
DHalHWImg8723A_BB.c211 #define READ_NEXT_PAIR(v1, v2, i) \ argument
213 i += 2; v1 = Array[i]; v2 = Array[i+1]; \
219 u32 i; in ODM_ReadAndConfig_AGC_TAB_1T_8723A() local
229 for (i = 0; i < ArrayLen; i += 2) { in ODM_ReadAndConfig_AGC_TAB_1T_8723A()
230 u32 v1 = Array[i]; in ODM_ReadAndConfig_AGC_TAB_1T_8723A()
231 u32 v2 = Array[i+1]; in ODM_ReadAndConfig_AGC_TAB_1T_8723A()
238 if (!CheckCondition(Array[i], hex)) { in ODM_ReadAndConfig_AGC_TAB_1T_8723A()
240 READ_NEXT_PAIR(v1, v2, i); in ODM_ReadAndConfig_AGC_TAB_1T_8723A()
243 v2 != 0xCDCD && i < ArrayLen - 2) in ODM_ReadAndConfig_AGC_TAB_1T_8723A()
244 READ_NEXT_PAIR(v1, v2, i); in ODM_ReadAndConfig_AGC_TAB_1T_8723A()
[all …]
DHalDMOutSrc8723A_CE.c36 int i = 0; in odm_TXPowerTrackingCallback_ThermalMeter_92C() local
70 for (i = 0; i < OFDM_TABLE_SIZE_92C; i++) { in odm_TXPowerTrackingCallback_ThermalMeter_92C()
72 if (ele_D == (OFDMSwingTable23A[i]&bMaskOFDM_D)) { in odm_TXPowerTrackingCallback_ThermalMeter_92C()
73 OFDM_index_old[0] = (u8)i; in odm_TXPowerTrackingCallback_ThermalMeter_92C()
83 for (i = 0; i < OFDM_TABLE_SIZE_92C; i++) { /* find the index */ in odm_TXPowerTrackingCallback_ThermalMeter_92C()
84 if (ele_D == (OFDMSwingTable23A[i]&bMaskOFDM_D)) { in odm_TXPowerTrackingCallback_ThermalMeter_92C()
85 OFDM_index_old[1] = (u8)i; in odm_TXPowerTrackingCallback_ThermalMeter_92C()
93 for (i = 0 ; i < CCK_TABLE_SIZE ; i++) { in odm_TXPowerTrackingCallback_ThermalMeter_92C()
96 &CCKSwingTable_Ch1423A[i][2], 4)) { in odm_TXPowerTrackingCallback_ThermalMeter_92C()
97 CCK_index_old = (u8)i; in odm_TXPowerTrackingCallback_ThermalMeter_92C()
[all …]
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-av-vbi.c120 int i; in decode_vps() local
122 for (i = 0; i < 2 * 13; i += 2) { in decode_vps()
123 err |= biphase_tbl[p[i]] | biphase_tbl[p[i + 1]]; in decode_vps()
124 c = (biphase_tbl[p[i + 1]] & 0xf) | in decode_vps()
125 ((biphase_tbl[p[i]] & 0xf) << 4); in decode_vps()
126 dst[i / 2] = c; in decode_vps()
144 int i; in cx18_av_g_sliced_fmt() local
154 for (i = 7; i <= 23; i++) { in cx18_av_g_sliced_fmt()
155 u8 v = cx18_av_read(cx, 0x424 + i - 7); in cx18_av_g_sliced_fmt()
157 svbi->service_lines[0][i] = lcr2vbi[v >> 4]; in cx18_av_g_sliced_fmt()
[all …]
/linux-4.4.14/drivers/mtd/maps/
Dpmcmsp-flash.c54 int i, j, ret = -ENOMEM; in init_msp_flash() local
91 for (i = 0; i < fcnt; i++) { in init_msp_flash()
93 part_name[5] = '0' + i; in init_msp_flash()
100 "(no partitions defined)\n", i); in init_msp_flash()
104 msp_parts[i] = kcalloc(pcnt, sizeof(struct mtd_partition), in init_msp_flash()
106 if (!msp_parts[i]) in init_msp_flash()
110 flash_name[5] = '0' + i; in init_msp_flash()
115 kfree(msp_parts[i]); in init_msp_flash()
124 msp_maps[i].size = size; in init_msp_flash()
125 msp_maps[i].phys = addr; in init_msp_flash()
[all …]
Dsc520cdp.c188 int i, j; in sc520cdp_setup_par() local
194 for(i = 0; i < NUM_FLASH_BANKS; i++) in sc520cdp_setup_par()
195 sc520cdp_map[i].phys = par_table[i].default_address; in sc520cdp_setup_par()
204 for(i = 0; i < NUM_FLASH_BANKS; i++) { /* for each par_table entry */ in sc520cdp_setup_par()
208 if((mmcr_val & SC520_PAR_TRGDEV) == par_table[i].trgdev) in sc520cdp_setup_par()
210 writel(par_table[i].new_par, &mmcr[SC520_PAR(j)]); in sc520cdp_setup_par()
217 sc520cdp_map[i].name); in sc520cdp_setup_par()
219 par_table[i].default_address); in sc520cdp_setup_par()
220 sc520cdp_map[i].phys = par_table[i].default_address; in sc520cdp_setup_par()
230 int i, devices_found = 0; in init_sc520cdp() local
[all …]
Dimpa7.c62 int i; in init_impa7() local
69 for(i=0; i<NUM_FLASHBANKS; i++) in init_impa7()
72 pt[i].size, pt[i].addr); in init_impa7()
74 impa7_map[i].phys = pt[i].addr; in init_impa7()
75 impa7_map[i].virt = ioremap(pt[i].addr, pt[i].size); in init_impa7()
76 if (!impa7_map[i].virt) { in init_impa7()
80 simple_map_init(&impa7_map[i]); in init_impa7()
82 impa7_mtd[i] = NULL; in init_impa7()
84 for(; !impa7_mtd[i] && *type; type++) { in init_impa7()
85 impa7_mtd[i] = do_map_probe(*type, &impa7_map[i]); in init_impa7()
[all …]
/linux-4.4.14/drivers/net/ethernet/ti/
Dnetcp_xgbepcsr.c136 int i; in netcp_xgbe_serdes_cmu_init() local
139 for (i = 0; i < ARRAY_SIZE(cfg_phyb_1p25g_156p25mhz_cmu0); i++) { in netcp_xgbe_serdes_cmu_init()
140 reg_rmw(serdes_regs + cfg_phyb_1p25g_156p25mhz_cmu0[i].ofs, in netcp_xgbe_serdes_cmu_init()
141 cfg_phyb_1p25g_156p25mhz_cmu0[i].val, in netcp_xgbe_serdes_cmu_init()
142 cfg_phyb_1p25g_156p25mhz_cmu0[i].mask); in netcp_xgbe_serdes_cmu_init()
146 for (i = 0; i < ARRAY_SIZE(cfg_phyb_10p3125g_156p25mhz_cmu1); i++) { in netcp_xgbe_serdes_cmu_init()
147 reg_rmw(serdes_regs + cfg_phyb_10p3125g_156p25mhz_cmu1[i].ofs, in netcp_xgbe_serdes_cmu_init()
148 cfg_phyb_10p3125g_156p25mhz_cmu1[i].val, in netcp_xgbe_serdes_cmu_init()
149 cfg_phyb_10p3125g_156p25mhz_cmu1[i].mask); in netcp_xgbe_serdes_cmu_init()
157 int i; in netcp_xgbe_serdes_lane_config() local
[all …]
/linux-4.4.14/drivers/tty/serial/
Dserial_mctrl_gpio.c51 enum mctrl_gpio_idx i; in mctrl_gpio_set() local
56 for (i = 0; i < UART_GPIO_MAX; i++) in mctrl_gpio_set()
57 if (gpios->gpio[i] && mctrl_gpios_desc[i].dir_out) { in mctrl_gpio_set()
58 desc_array[count] = gpios->gpio[i]; in mctrl_gpio_set()
59 value_array[count] = !!(mctrl & mctrl_gpios_desc[i].mctrl); in mctrl_gpio_set()
75 enum mctrl_gpio_idx i; in mctrl_gpio_get() local
77 for (i = 0; i < UART_GPIO_MAX; i++) { in mctrl_gpio_get()
78 if (gpios->gpio[i] && !mctrl_gpios_desc[i].dir_out) { in mctrl_gpio_get()
79 if (gpiod_get_value(gpios->gpio[i])) in mctrl_gpio_get()
80 *mctrl |= mctrl_gpios_desc[i].mctrl; in mctrl_gpio_get()
[all …]
/linux-4.4.14/drivers/net/wireless/b43/
Dppr.c21 #define ppr_for_each_entry(ppr, i, entry) \ argument
22 for (i = 0, entry = &(ppr)->__all_rates[i]; \
23 i < B43_PPR_RATES_NUM; \
24 i++, entry++)
36 int i; in b43_ppr_add() local
39 ppr_for_each_entry(ppr, i, rate) { in b43_ppr_add()
46 int i; in b43_ppr_apply_max() local
49 ppr_for_each_entry(ppr, i, rate) { in b43_ppr_apply_max()
56 int i; in b43_ppr_apply_min() local
59 ppr_for_each_entry(ppr, i, rate) { in b43_ppr_apply_min()
[all …]
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_memfree.c66 int i; in mthca_free_icm_pages() local
72 for (i = 0; i < chunk->npages; ++i) in mthca_free_icm_pages()
73 __free_pages(sg_page(&chunk->mem[i]), in mthca_free_icm_pages()
74 get_order(chunk->mem[i].length)); in mthca_free_icm_pages()
79 int i; in mthca_free_icm_coherent() local
81 for (i = 0; i < chunk->npages; ++i) { in mthca_free_icm_coherent()
82 dma_free_coherent(&dev->pdev->dev, chunk->mem[i].length, in mthca_free_icm_coherent()
83 lowmem_page_address(sg_page(&chunk->mem[i])), in mthca_free_icm_coherent()
84 sg_dma_address(&chunk->mem[i])); in mthca_free_icm_coherent()
224 int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_get() local
[all …]
Dmthca_profile.c80 int i, j; in mthca_make_profile() local
114 for (i = 0; i < MTHCA_RES_NUM; ++i) { in mthca_make_profile()
115 profile[i].type = i; in mthca_make_profile()
116 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile()
117 profile[i].size *= profile[i].num; in mthca_make_profile()
119 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mthca_make_profile()
136 for (i = MTHCA_RES_NUM; i > 0; --i) in mthca_make_profile()
137 for (j = 1; j < i; ++j) { in mthca_make_profile()
142 for (i = 0; i < MTHCA_RES_NUM; ++i) { in mthca_make_profile()
143 if (profile[i].size) { in mthca_make_profile()
[all …]
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_suspend.c107 int i; in i915_save_state() local
126 for (i = 0; i < 7; i++) { in i915_save_state()
127 dev_priv->regfile.saveSWF0[i] = I915_READ(SWF0(i)); in i915_save_state()
128 dev_priv->regfile.saveSWF1[i] = I915_READ(SWF1(i)); in i915_save_state()
130 for (i = 0; i < 3; i++) in i915_save_state()
131 dev_priv->regfile.saveSWF3[i] = I915_READ(SWF3(i)); in i915_save_state()
133 for (i = 0; i < 7; i++) in i915_save_state()
134 dev_priv->regfile.saveSWF1[i] = I915_READ(SWF1(i)); in i915_save_state()
136 for (i = 0; i < 16; i++) { in i915_save_state()
137 dev_priv->regfile.saveSWF0[i] = I915_READ(SWF0(i)); in i915_save_state()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c176 u8 i; in ixgbevf_get_regs() local
204 for (i = 0; i < 2; i++) in ixgbevf_get_regs()
205 regs_buff[14 + i] = IXGBE_READ_REG(hw, IXGBE_VFRDBAL(i)); in ixgbevf_get_regs()
206 for (i = 0; i < 2; i++) in ixgbevf_get_regs()
207 regs_buff[16 + i] = IXGBE_READ_REG(hw, IXGBE_VFRDBAH(i)); in ixgbevf_get_regs()
208 for (i = 0; i < 2; i++) in ixgbevf_get_regs()
209 regs_buff[18 + i] = IXGBE_READ_REG(hw, IXGBE_VFRDLEN(i)); in ixgbevf_get_regs()
210 for (i = 0; i < 2; i++) in ixgbevf_get_regs()
211 regs_buff[20 + i] = IXGBE_READ_REG(hw, IXGBE_VFRDH(i)); in ixgbevf_get_regs()
212 for (i = 0; i < 2; i++) in ixgbevf_get_regs()
[all …]
/linux-4.4.14/fs/ufs/
Dutil.c22 unsigned i, j ; in _ubh_bread_() local
34 for (i = 0; i < count; i++) in _ubh_bread_()
35 if (!(ubh->bh[i] = sb_bread(sb, fragment + i))) in _ubh_bread_()
37 for (; i < UFS_MAXFRAG; i++) in _ubh_bread_()
38 ubh->bh[i] = NULL; in _ubh_bread_()
41 for (j = 0; j < i; j++) in _ubh_bread_()
50 unsigned i, j; in ubh_bread_uspi() local
59 for (i = 0; i < count; i++) in ubh_bread_uspi()
60 if (!(USPI_UBH(uspi)->bh[i] = sb_bread(sb, fragment + i))) in ubh_bread_uspi()
62 for (; i < UFS_MAXFRAG; i++) in ubh_bread_uspi()
[all …]
/linux-4.4.14/drivers/staging/wlan-ng/
Dp80211wep.c149 u32 i, j, k, crc, keylen; in wep_decrypt() local
181 for (i = 0; i < 256; i++) in wep_decrypt()
182 s[i] = i; in wep_decrypt()
184 for (i = 0; i < 256; i++) { in wep_decrypt()
185 j = (j + s[i] + key[i % keylen]) & 0xff; in wep_decrypt()
186 swap(i, j); in wep_decrypt()
191 i = j = 0; in wep_decrypt()
193 i = (i + 1) & 0xff; in wep_decrypt()
194 j = (j + s[i]) & 0xff; in wep_decrypt()
195 swap(i, j); in wep_decrypt()
[all …]
/linux-4.4.14/drivers/block/paride/
Dbpck.c110 { int i; in bpck_write_block() local
116 for (i=0;i<count;i++) { w0(buf[i]); t2(4); } in bpck_write_block()
122 for (i=0;i<count;i++) { w0(buf[i]); t2(4); } in bpck_write_block()
128 for (i=0;i<count;i++) w4(buf[i]); in bpck_write_block()
135 for (i=0;i<count/2;i++) w4w(((u16 *)buf)[i]); in bpck_write_block()
142 for (i=0;i<count/4;i++) w4l(((u32 *)buf)[i]); in bpck_write_block()
151 { int i, l, h; in bpck_read_block() local
157 for (i=0;i<count;i++) { in bpck_read_block()
160 buf[i] = j44(l,h); in bpck_read_block()
167 for(i=0;i<count;i++) { t2(4); buf[i] = r0(); } in bpck_read_block()
[all …]
/linux-4.4.14/arch/unicore32/kernel/
Ddma.c41 int i, found = 0; in puv3_request_dma() local
51 for (i = 0; i < MAX_DMA_CHANNELS; i++) { in puv3_request_dma()
52 if ((dma_channels[i].prio == prio) && in puv3_request_dma()
53 !dma_channels[i].name) { in puv3_request_dma()
62 dma_channels[i].name = name; in puv3_request_dma()
63 dma_channels[i].irq_handler = irq_handler; in puv3_request_dma()
64 dma_channels[i].err_handler = err_handler; in puv3_request_dma()
65 dma_channels[i].data = data; in puv3_request_dma()
69 i = -ENODEV; in puv3_request_dma()
73 return i; in puv3_request_dma()
[all …]
/linux-4.4.14/lib/
Ddecompress_bunzip2.c161 i, j, k, t, runPos, symCount, symTotal, nSelectors, *byteCount; in get_next_block() local
174 i = get_bits(bd, 24); in get_next_block()
177 if ((i == 0x177245) && (j == 0x385090)) in get_next_block()
179 if ((i != 0x314159) || (j != 0x265359)) in get_next_block()
196 for (i = 0; i < 16; i++) { in get_next_block()
197 if (t&(1 << (15-i))) { in get_next_block()
201 symToByte[symTotal++] = (16*i)+j; in get_next_block()
216 for (i = 0; i < groupCount; i++) in get_next_block()
217 mtfSymbol[i] = i; in get_next_block()
218 for (i = 0; i < nSelectors; i++) { in get_next_block()
[all …]
Dbuild_OID_registry53 for (my $i = 0; $i <= $#names; $i++) {
54 my $name = $names[$i];
55 my $oid = $oids[$i];
83 for (my $i = 0; $i <= $#names; $i++) {
84 print C_FILE "\t[OID_", $names[$i], "] = ", $indices[$i], ",\n"
94 for (my $i = 0; $i <= $#names; $i++) {
97 my @components = split(/[.]/, $oids[$i]);
121 for (my $i = 0; $i <= $#names; $i++) {
122 my @octets = @{$encoded_oids[$i]};
139 for (my $i = 0; $i <= $#names; $i++) {
[all …]
Dtest_rhashtable.c81 unsigned int i; in test_rht_lookup() local
83 for (i = 0; i < entries * 2; i++) { in test_rht_lookup()
85 bool expected = !(i % 2); in test_rht_lookup()
86 u32 key = i; in test_rht_lookup()
88 if (array[i / 2].value == TEST_INSERT_FAIL) in test_rht_lookup()
101 if (obj->value != i) { in test_rht_lookup()
103 obj->value, i); in test_rht_lookup()
160 unsigned int i, insert_fails = 0; in test_rhashtable() local
169 for (i = 0; i < entries; i++) { in test_rhashtable()
170 struct test_obj *obj = &array[i]; in test_rhashtable()
[all …]
Dbtree.c105 size_t i; in longcmp() local
107 for (i = 0; i < n; i++) { in longcmp()
108 if (l1[i] < l2[i]) in longcmp()
110 if (l1[i] > l2[i]) in longcmp()
119 size_t i; in longcpy() local
121 for (i = 0; i < n; i++) in longcpy()
122 dest[i] = src[i]; in longcpy()
128 size_t i; in longset() local
130 for (i = 0; i < n; i++) in longset()
131 s[i] = c; in longset()
[all …]
Dts_bm.c65 unsigned int i, text_len, consumed = state->offset; in bm_find() local
79 for (i = 0; i < bm->patlen; i++) in bm_find()
80 if ((icase ? toupper(text[shift-i]) in bm_find()
81 : text[shift-i]) in bm_find()
82 != bm->pattern[bm->patlen-1-i]) in bm_find()
89 next: bs = bm->bad_shift[text[shift-i]]; in bm_find()
92 shift = max_t(int, shift-i+bs, shift+bm->good_shift[i]); in bm_find()
100 static int subpattern(u8 *pattern, int i, int j, int g) in subpattern() argument
102 int x = i+g-1, y = j+g-1, ret = 0; in subpattern()
110 ret = pattern[i-1] != pattern[j-1]; in subpattern()
[all …]
Dcrc32.c75 size_t i; local
101 for (i = 0; i < len; i++) {
119 for (i = 0; i < len; i++)
150 int i; local
153 for (i = 0; i < 8; i++)
216 int i; local
218 for (i = 0; i < 31; i++) {
243 int i; local
246 for (i = 0; i < 8 * (int)(len & 3); i++)
295 int i; local
[all …]
Diov_iter.c8 #define iterate_iovec(i, n, __v, __p, skip, STEP) { \ argument
11 __p = i->iov; \
36 #define iterate_kvec(i, n, __v, __p, skip, STEP) { \ argument
38 __p = i->kvec; \
59 #define iterate_bvec(i, n, __v, __p, skip, STEP) { \ argument
61 __p = i->bvec; \
84 #define iterate_all_kinds(i, n, v, I, B, K) { \ argument
85 size_t skip = i->iov_offset; \
86 if (unlikely(i->type & ITER_BVEC)) { \
89 iterate_bvec(i, n, v, bvec, skip, (B)) \
[all …]
Dgen_crc32table.c38 unsigned i, j; in crc32init_le_generic() local
43 for (i = LE_TABLE_SIZE >> 1; i; i >>= 1) { in crc32init_le_generic()
45 for (j = 0; j < LE_TABLE_SIZE; j += 2 * i) in crc32init_le_generic()
46 tab[0][i + j] = crc ^ tab[0][j]; in crc32init_le_generic()
48 for (i = 0; i < LE_TABLE_SIZE; i++) { in crc32init_le_generic()
49 crc = tab[0][i]; in crc32init_le_generic()
52 tab[j][i] = crc; in crc32init_le_generic()
72 unsigned i, j; in crc32init_be() local
77 for (i = 1; i < BE_TABLE_SIZE; i <<= 1) { in crc32init_be()
79 for (j = 0; j < i; j++) in crc32init_be()
[all …]
/linux-4.4.14/arch/x86/kernel/cpu/mtrr/
Dcleanup.c72 int i; in x86_get_mtrr_mem_range() local
74 for (i = 0; i < num_var_ranges; i++) { in x86_get_mtrr_mem_range()
75 type = range_state[i].type; in x86_get_mtrr_mem_range()
78 base = range_state[i].base_pfn; in x86_get_mtrr_mem_range()
79 size = range_state[i].size_pfn; in x86_get_mtrr_mem_range()
85 for (i = 0; i < nr_range; i++) in x86_get_mtrr_mem_range()
87 range[i].start, range[i].end); in x86_get_mtrr_mem_range()
91 for (i = 0; i < num_var_ranges; i++) { in x86_get_mtrr_mem_range()
92 type = range_state[i].type; in x86_get_mtrr_mem_range()
96 size = range_state[i].size_pfn; in x86_get_mtrr_mem_range()
[all …]
/linux-4.4.14/drivers/pinctrl/qcom/
Dpinctrl-qdf2xxx.c39 unsigned int i; in qdf2xxx_pinctrl_probe() local
58 for (i = 0; i < num_gpios; i++) { in qdf2xxx_pinctrl_probe()
59 pins[i].number = i; in qdf2xxx_pinctrl_probe()
61 groups[i].npins = 1, in qdf2xxx_pinctrl_probe()
62 groups[i].pins = &pins[i].number; in qdf2xxx_pinctrl_probe()
63 groups[i].ctl_reg = 0x10000 * i; in qdf2xxx_pinctrl_probe()
64 groups[i].io_reg = 0x04 + 0x10000 * i; in qdf2xxx_pinctrl_probe()
65 groups[i].intr_cfg_reg = 0x08 + 0x10000 * i; in qdf2xxx_pinctrl_probe()
66 groups[i].intr_status_reg = 0x0c + 0x10000 * i; in qdf2xxx_pinctrl_probe()
67 groups[i].intr_target_reg = 0x08 + 0x10000 * i; in qdf2xxx_pinctrl_probe()
[all …]
/linux-4.4.14/drivers/media/pci/ttpci/
Dttpci-eeprom.c52 int i; in check_mac_tt() local
55 for (i = 0; i < 8; i++) { in check_mac_tt()
56 tmp = (tmp << 8) | ((tmp >> 8) ^ buf[i]); in check_mac_tt()
70 int i; in getmac_tt() local
75 for (i = 0; i < 20; i++) in getmac_tt()
76 data[i] ^= xor[i]; in getmac_tt()
77 for (i = 0; i < 10; i++) in getmac_tt()
78 data[i] = ((data[2 * i + 1] << 8) | data[2 * i]) in getmac_tt()
79 >> ((data[2 * i + 1] >> 6) & 3); in getmac_tt()
95 int i; in ttpci_eeprom_decode_mac() local
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dregs.h48 #define NV10_PGRAPH_CTX_SWITCH(i) (0x0040014C + 0x4*(i)) argument
50 #define NV10_PGRAPH_CTX_CACHE(i, j) (0x00400160 \ argument
51 + 0x4*(i) + 0x20*(j))
203 #define NV20_PGRAPH_TILE(i) (0x00400900 + (i*16)) argument
204 #define NV20_PGRAPH_TLIMIT(i) (0x00400904 + (i*16)) argument
205 #define NV20_PGRAPH_TSIZE(i) (0x00400908 + (i*16)) argument
206 #define NV20_PGRAPH_TSTATUS(i) (0x0040090C + (i*16)) argument
207 #define NV20_PGRAPH_ZCOMP(i) (0x00400980 + 4*(i)) argument
208 #define NV41_PGRAPH_ZCOMP0(i) (0x004009c0 + 4*(i)) argument
209 #define NV10_PGRAPH_TILE(i) (0x00400B00 + (i*16)) argument
[all …]
Dnv34.c25 int ret, i; in nv34_gr_chan_new() local
50 for (i = 0x04d4; i < 0x04dc; i += 4) in nv34_gr_chan_new()
51 nvkm_wo32(chan->inst, i, 0x0fff0000); in nv34_gr_chan_new()
53 for (i = 0x04fc; i < 0x053c; i += 4) in nv34_gr_chan_new()
54 nvkm_wo32(chan->inst, i, 0x07ff0000); in nv34_gr_chan_new()
62 for (i = 0x05f0; i < 0x0630; i += 4) in nv34_gr_chan_new()
63 nvkm_wo32(chan->inst, i, 0x00010588); in nv34_gr_chan_new()
64 for (i = 0x0630; i < 0x0670; i += 4) in nv34_gr_chan_new()
65 nvkm_wo32(chan->inst, i, 0x00030303); in nv34_gr_chan_new()
66 for (i = 0x06b0; i < 0x06f0; i += 4) in nv34_gr_chan_new()
[all …]
Dnv35.c25 int ret, i; in nv35_gr_chan_new() local
50 for (i = 0x04dc; i < 0x04e4; i += 4) in nv35_gr_chan_new()
51 nvkm_wo32(chan->inst, i, 0x0fff0000); in nv35_gr_chan_new()
53 for (i = 0x0504; i < 0x0544; i += 4) in nv35_gr_chan_new()
54 nvkm_wo32(chan->inst, i, 0x07ff0000); in nv35_gr_chan_new()
62 for (i = 0x0604; i < 0x0644; i += 4) in nv35_gr_chan_new()
63 nvkm_wo32(chan->inst, i, 0x00010588); in nv35_gr_chan_new()
64 for (i = 0x0644; i < 0x0684; i += 4) in nv35_gr_chan_new()
65 nvkm_wo32(chan->inst, i, 0x00030303); in nv35_gr_chan_new()
66 for (i = 0x06c4; i < 0x0704; i += 4) in nv35_gr_chan_new()
[all …]
Dnv2a.c25 int ret, i; in nv2a_gr_chan_new() local
48 for (i = 0x04d4; i <= 0x04e0; i += 4) in nv2a_gr_chan_new()
49 nvkm_wo32(chan->inst, i, 0x00030303); in nv2a_gr_chan_new()
50 for (i = 0x04f4; i <= 0x0500; i += 4) in nv2a_gr_chan_new()
51 nvkm_wo32(chan->inst, i, 0x00080000); in nv2a_gr_chan_new()
52 for (i = 0x050c; i <= 0x0518; i += 4) in nv2a_gr_chan_new()
53 nvkm_wo32(chan->inst, i, 0x01012000); in nv2a_gr_chan_new()
54 for (i = 0x051c; i <= 0x0528; i += 4) in nv2a_gr_chan_new()
55 nvkm_wo32(chan->inst, i, 0x000105b8); in nv2a_gr_chan_new()
56 for (i = 0x052c; i <= 0x0538; i += 4) in nv2a_gr_chan_new()
[all …]
Dnv25.c25 int ret, i; in nv25_gr_chan_new() local
52 for (i = 0x0510; i <= 0x051c; i += 4) in nv25_gr_chan_new()
53 nvkm_wo32(chan->inst, i, 0x00030303); in nv25_gr_chan_new()
54 for (i = 0x0530; i <= 0x053c; i += 4) in nv25_gr_chan_new()
55 nvkm_wo32(chan->inst, i, 0x00080000); in nv25_gr_chan_new()
56 for (i = 0x0548; i <= 0x0554; i += 4) in nv25_gr_chan_new()
57 nvkm_wo32(chan->inst, i, 0x01012000); in nv25_gr_chan_new()
58 for (i = 0x0558; i <= 0x0564; i += 4) in nv25_gr_chan_new()
59 nvkm_wo32(chan->inst, i, 0x000105b8); in nv25_gr_chan_new()
60 for (i = 0x0568; i <= 0x0574; i += 4) in nv25_gr_chan_new()
[all …]
Dnv30.c26 int ret, i; in nv30_gr_chan_new() local
51 for (i = 0x04e0; i < 0x04e8; i += 4) in nv30_gr_chan_new()
52 nvkm_wo32(chan->inst, i, 0x0fff0000); in nv30_gr_chan_new()
54 for (i = 0x0508; i < 0x0548; i += 4) in nv30_gr_chan_new()
55 nvkm_wo32(chan->inst, i, 0x07ff0000); in nv30_gr_chan_new()
63 for (i = 0x0600; i < 0x0640; i += 4) in nv30_gr_chan_new()
64 nvkm_wo32(chan->inst, i, 0x00010588); in nv30_gr_chan_new()
65 for (i = 0x0640; i < 0x0680; i += 4) in nv30_gr_chan_new()
66 nvkm_wo32(chan->inst, i, 0x00030303); in nv30_gr_chan_new()
67 for (i = 0x06c0; i < 0x0700; i += 4) in nv30_gr_chan_new()
[all …]
/linux-4.4.14/sound/soc/
Dsoc-jack.c137 int i; in snd_soc_jack_add_zones() local
139 for (i = 0; i < count; i++) { in snd_soc_jack_add_zones()
140 INIT_LIST_HEAD(&zones[i].list); in snd_soc_jack_add_zones()
141 list_add(&(zones[i].list), &jack->jack_zones); in snd_soc_jack_add_zones()
184 int i; in snd_soc_jack_add_pins() local
186 for (i = 0; i < count; i++) { in snd_soc_jack_add_pins()
187 if (!pins[i].pin) { in snd_soc_jack_add_pins()
189 i); in snd_soc_jack_add_pins()
192 if (!pins[i].mask) { in snd_soc_jack_add_pins()
194 " (%s)\n", i, pins[i].pin); in snd_soc_jack_add_pins()
[all …]
/linux-4.4.14/tools/perf/util/
Dvalues.c28 int i; in perf_read_values_destroy() local
33 for (i = 0; i < values->threads; i++) in perf_read_values_destroy()
34 zfree(&values->value[i]); in perf_read_values_destroy()
39 for (i = 0; i < values->counters; i++) in perf_read_values_destroy()
40 zfree(&values->countername[i]); in perf_read_values_destroy()
60 int i; in perf_read_values__findnew_thread() local
62 for (i = 0; i < values->threads; i++) in perf_read_values__findnew_thread()
63 if (values->pid[i] == pid && values->tid[i] == tid) in perf_read_values__findnew_thread()
64 return i; in perf_read_values__findnew_thread()
69 i = values->threads++; in perf_read_values__findnew_thread()
[all …]
/linux-4.4.14/crypto/
Dtwofish_common.c482 #define CALC_S(a, b, c, d, i, w, x, y, z) \ argument
483 if (key[i]) { \
484 tmp = poly_to_exp[key[i] - 1]; \
497 #define CALC_SB_2(i, a, b) \ argument
498 ctx->s[0][i] = mds[0][q0[(a) ^ sa] ^ se]; \
499 ctx->s[1][i] = mds[1][q0[(b) ^ sb] ^ sf]; \
500 ctx->s[2][i] = mds[2][q1[(a) ^ sc] ^ sg]; \
501 ctx->s[3][i] = mds[3][q1[(b) ^ sd] ^ sh]
505 #define CALC_SB192_2(i, a, b) \ argument
506 ctx->s[0][i] = mds[0][q0[q0[(b) ^ sa] ^ se] ^ si]; \
[all …]
Danubis.c468 int N, R, i, r; in anubis_setkey() local
486 for (i = 0; i < N; i++) in anubis_setkey()
487 kappa[i] = be32_to_cpu(key[i]); in anubis_setkey()
501 for (i = N - 2; i >= 0; i--) { in anubis_setkey()
502 K0 = T4[(kappa[i] >> 24) ] ^ in anubis_setkey()
507 K1 = T4[(kappa[i] >> 16) & 0xff] ^ in anubis_setkey()
512 K2 = T4[(kappa[i] >> 8) & 0xff] ^ in anubis_setkey()
517 K3 = T4[(kappa[i] ) & 0xff] ^ in anubis_setkey()
534 for (i = 0; i < N; i++) { in anubis_setkey()
535 int j = i; in anubis_setkey()
[all …]
Dgf128mul.c102 #define xda_bbe(i) ( \ argument
103 (i & 0x80 ? xx(43, 80) : 0) ^ (i & 0x40 ? xx(21, c0) : 0) ^ \
104 (i & 0x20 ? xx(10, e0) : 0) ^ (i & 0x10 ? xx(08, 70) : 0) ^ \
105 (i & 0x08 ? xx(04, 38) : 0) ^ (i & 0x04 ? xx(02, 1c) : 0) ^ \
106 (i & 0x02 ? xx(01, 0e) : 0) ^ (i & 0x01 ? xx(00, 87) : 0) \
109 #define xda_lle(i) ( \ argument
110 (i & 0x80 ? xx(e1, 00) : 0) ^ (i & 0x40 ? xx(70, 80) : 0) ^ \
111 (i & 0x20 ? xx(38, 40) : 0) ^ (i & 0x10 ? xx(1c, 20) : 0) ^ \
112 (i & 0x08 ? xx(0e, 10) : 0) ^ (i & 0x04 ? xx(07, 08) : 0) ^ \
113 (i & 0x02 ? xx(03, 84) : 0) ^ (i & 0x01 ? xx(01, c2) : 0) \
[all …]
/linux-4.4.14/drivers/ata/
Dsata_promise.h91 unsigned int i) in pdc_pkt_footer() argument
94 buf[i++] = (1 << 5) | ATA_REG_DEVICE; in pdc_pkt_footer()
95 buf[i++] = tf->device; in pdc_pkt_footer()
99 buf[i++] = (1 << 5) | PDC_LAST_REG | ATA_REG_CMD; in pdc_pkt_footer()
100 buf[i++] = tf->command; in pdc_pkt_footer()
102 return i; in pdc_pkt_footer()
105 static inline unsigned int pdc_prep_lba28(struct ata_taskfile *tf, u8 *buf, unsigned int i) in pdc_prep_lba28() argument
110 buf[i++] = (1 << 5) | ATA_REG_FEATURE; in pdc_prep_lba28()
111 buf[i++] = tf->feature; in pdc_prep_lba28()
113 buf[i++] = (1 << 5) | ATA_REG_NSECT; in pdc_prep_lba28()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c159 unsigned int i; in fm10k_get_stat_strings() local
162 for (i = 0; i < FM10K_NETDEV_STATS_LEN; i++) { in fm10k_get_stat_strings()
163 memcpy(p, fm10k_gstrings_net_stats[i].stat_string, in fm10k_get_stat_strings()
168 for (i = 0; i < FM10K_GLOBAL_STATS_LEN; i++) { in fm10k_get_stat_strings()
169 memcpy(p, fm10k_gstrings_global_stats[i].stat_string, in fm10k_get_stat_strings()
175 for (i = 0; i < FM10K_DEBUG_STATS_LEN; i++) { in fm10k_get_stat_strings()
176 memcpy(p, fm10k_gstrings_debug_stats[i].stat_string, in fm10k_get_stat_strings()
182 for (i = 0; i < FM10K_MBX_STATS_LEN; i++) { in fm10k_get_stat_strings()
183 memcpy(p, fm10k_gstrings_mbx_stats[i].stat_string, in fm10k_get_stat_strings()
189 for (i = 0; i < FM10K_PF_STATS_LEN; i++) { in fm10k_get_stat_strings()
[all …]
/linux-4.4.14/drivers/input/gameport/
Dlightning.c80 int i, result = -1; in l4_cooked_read() local
91 for (i = 0; i < 4; i++) in l4_cooked_read()
92 if (status & (1 << i)) { in l4_cooked_read()
94 axes[i] = inb(L4_PORT); in l4_cooked_read()
95 if (axes[i] > 252) axes[i] = -1; in l4_cooked_read()
125 int i, result = -1; in l4_getcal() local
143 for (i = 0; i < 4; i++) { in l4_getcal()
146 cal[i] = inb(L4_PORT); in l4_getcal()
161 int i, result = -1; in l4_setcal() local
179 for (i = 0; i < 4; i++) { in l4_setcal()
[all …]
/linux-4.4.14/arch/mips/sgi-ip22/
Dip22-int.c247 int i; in arch_init_irq() local
250 for (i = 0; i < 256; i++) { in arch_init_irq()
251 if (i & 0x80) { in arch_init_irq()
252 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 7; in arch_init_irq()
253 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 7; in arch_init_irq()
254 lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 7; in arch_init_irq()
255 lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 7; in arch_init_irq()
256 } else if (i & 0x40) { in arch_init_irq()
257 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 6; in arch_init_irq()
258 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 6; in arch_init_irq()
[all …]
/linux-4.4.14/arch/powerpc/sysdev/
Dmicropatch.c636 int i; in cpm_load_patch() local
644 for (i=0; i<(sizeof(patch_2000)/4); i++) in cpm_load_patch()
645 *dp++ = patch_2000[i]; in cpm_load_patch()
648 for (i=0; i<(sizeof(patch_2f00)/4); i++) in cpm_load_patch()
649 *dp++ = patch_2f00[i]; in cpm_load_patch()
662 for (i=0; i<(sizeof(patch_2000)/4); i++) in cpm_load_patch()
663 *dp++ = patch_2000[i]; in cpm_load_patch()
666 for (i=0; i<(sizeof(patch_2f00)/4); i++) in cpm_load_patch()
667 *dp++ = patch_2f00[i]; in cpm_load_patch()
675 i = (RPBASE + sizeof(iic_t) + 31) & ~31; in cpm_load_patch()
[all …]
/linux-4.4.14/arch/mips/ar7/
Dprom.c43 int i; in prom_getenv() local
45 for (i = 0; (i < MAX_ENTRY) && adam2_env[i].name; i++) in prom_getenv()
46 if (!strcmp(name, adam2_env[i].name)) in prom_getenv()
47 return adam2_env[i].value; in prom_getenv()
55 int i; in ar7_init_cmdline() local
57 for (i = 1; i < argc; i++) { in ar7_init_cmdline()
58 strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); in ar7_init_cmdline()
59 if (i < (argc - 1)) in ar7_init_cmdline()
131 int i; in lookup_psp_var_map() local
133 for (i = 0; i < ARRAY_SIZE(psp_var_map); i++) in lookup_psp_var_map()
[all …]
/linux-4.4.14/drivers/scsi/snic/
Dsnic_res.c134 unsigned int i; in snic_free_vnic_res() local
136 for (i = 0; i < snic->wq_count; i++) in snic_free_vnic_res()
137 svnic_wq_free(&snic->wq[i]); in snic_free_vnic_res()
139 for (i = 0; i < snic->cq_count; i++) in snic_free_vnic_res()
140 svnic_cq_free(&snic->cq[i]); in snic_free_vnic_res()
142 for (i = 0; i < snic->intr_count; i++) in snic_free_vnic_res()
143 svnic_intr_free(&snic->intr[i]); in snic_free_vnic_res()
154 unsigned int i; in snic_alloc_vnic_res() local
176 for (i = 0; i < snic->wq_count; i++) { in snic_alloc_vnic_res()
178 &snic->wq[i], in snic_alloc_vnic_res()
[all …]
/linux-4.4.14/sound/drivers/opl4/
Dopl4_synth.c276 int i; in snd_opl4_synth_reset() local
279 for (i = 0; i < OPL4_MAX_VOICES; i++) in snd_opl4_synth_reset()
280 snd_opl4_write(opl4, OPL4_REG_MISC + i, OPL4_DAMP_BIT); in snd_opl4_synth_reset()
286 for (i = 0; i < OPL4_MAX_VOICES; i++) { in snd_opl4_synth_reset()
287 opl4->voices[i].number = i; in snd_opl4_synth_reset()
288 list_add_tail(&opl4->voices[i].list, &opl4->off_voices); in snd_opl4_synth_reset()
300 int i; in snd_opl4_synth_shutdown() local
303 for (i = 0; i < OPL4_MAX_VOICES; i++) in snd_opl4_synth_shutdown()
304 snd_opl4_write(opl4, OPL4_REG_MISC + i, in snd_opl4_synth_shutdown()
305 opl4->voices[i].reg_misc & ~OPL4_KEY_ON_BIT); in snd_opl4_synth_shutdown()
[all …]
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_tx.c64 unsigned i; in qib_disarm_piobufs() local
69 for (i = first; i < last; i++) { in qib_disarm_piobufs()
70 __clear_bit(i, dd->pio_need_disarm); in qib_disarm_piobufs()
71 dd->f_sendctrl(dd->pport, QIB_SENDCTRL_DISARM_BUF(i)); in qib_disarm_piobufs()
83 unsigned i; in qib_disarm_piobufs_ifneeded() local
99 for (i = 1; i < rcd->subctxt_cnt; i++) in qib_disarm_piobufs_ifneeded()
101 &rcd->user_event_mask[i]); in qib_disarm_piobufs_ifneeded()
104 for (i = rcd->pio_base; i < last; i++) { in qib_disarm_piobufs_ifneeded()
105 if (__test_and_clear_bit(i, dd->pio_need_disarm)) { in qib_disarm_piobufs_ifneeded()
107 dd->f_sendctrl(rcd->ppd, QIB_SENDCTRL_DISARM_BUF(i)); in qib_disarm_piobufs_ifneeded()
[all …]
/linux-4.4.14/drivers/crypto/qat/qat_dh895xcc/
Dadf_isr.c72 int i; in adf_enable_msix() local
75 for (i = 0; i < msix_num_entries; i++) in adf_enable_msix()
76 pci_dev_info->msix_entries.entries[i].entry = i; in adf_enable_msix()
125 int i; in adf_msix_isr_ae() local
135 for_each_set_bit(i, (const unsigned long *)&vf_mask, in adf_msix_isr_ae()
137 vf_info = accel_dev->pf.vf_info + i; in adf_msix_isr_ae()
169 int ret, i = 0; in adf_request_irqs() local
174 for (i = 0; i < hw_data->num_banks; i++) { in adf_request_irqs()
175 struct adf_etr_bank_data *bank = &etr_data->banks[i]; in adf_request_irqs()
178 name = *(pci_dev_info->msix_entries.names + i); in adf_request_irqs()
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dprofile.c86 int i, j; in mlx4_make_profile() local
135 for (i = 0; i < MLX4_RES_NUM; ++i) { in mlx4_make_profile()
136 profile[i].type = i; in mlx4_make_profile()
137 profile[i].num = roundup_pow_of_two(profile[i].num); in mlx4_make_profile()
138 profile[i].log_num = ilog2(profile[i].num); in mlx4_make_profile()
139 profile[i].size *= profile[i].num; in mlx4_make_profile()
140 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mlx4_make_profile()
149 for (i = MLX4_RES_NUM; i > 0; --i) in mlx4_make_profile()
150 for (j = 1; j < i; ++j) { in mlx4_make_profile()
155 for (i = 0; i < MLX4_RES_NUM; ++i) { in mlx4_make_profile()
[all …]
Dicm.c56 int i; in mlx4_free_icm_pages() local
62 for (i = 0; i < chunk->npages; ++i) in mlx4_free_icm_pages()
63 __free_pages(sg_page(&chunk->mem[i]), in mlx4_free_icm_pages()
64 get_order(chunk->mem[i].length)); in mlx4_free_icm_pages()
69 int i; in mlx4_free_icm_coherent() local
71 for (i = 0; i < chunk->npages; ++i) in mlx4_free_icm_coherent()
73 chunk->mem[i].length, in mlx4_free_icm_coherent()
74 lowmem_page_address(sg_page(&chunk->mem[i])), in mlx4_free_icm_coherent()
75 sg_dma_address(&chunk->mem[i])); in mlx4_free_icm_coherent()
252 u32 i = (obj & (table->num_obj - 1)) / in mlx4_table_get() local
[all …]
Dfw_qos.c91 int i; in mlx4_SET_PORT_PRIO2TC() local
99 for (i = 0; i < MLX4_NUM_UP; i += 2) in mlx4_SET_PORT_PRIO2TC()
100 context->prio2tc[i >> 1] = prio2tc[i] << 4 | prio2tc[i + 1]; in mlx4_SET_PORT_PRIO2TC()
118 int i; in mlx4_SET_PORT_SCHEDULER() local
126 for (i = 0; i < MLX4_NUM_TC; i++) { in mlx4_SET_PORT_SCHEDULER()
127 struct mlx4_port_scheduler_tc_cfg_be *tc = &context->tc[i]; in mlx4_SET_PORT_SCHEDULER()
130 if (ratelimit && ratelimit[i]) { in mlx4_SET_PORT_SCHEDULER()
131 if (ratelimit[i] <= MLX4_MAX_100M_UNITS_VAL) { in mlx4_SET_PORT_SCHEDULER()
132 r = ratelimit[i]; in mlx4_SET_PORT_SCHEDULER()
136 r = ratelimit[i] / 10; in mlx4_SET_PORT_SCHEDULER()
[all …]
Den_dcb_nl.c104 int i; in mlx4_en_ets_validate() local
108 for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) { in mlx4_en_ets_validate()
109 if (ets->prio_tc[i] >= MLX4_EN_NUM_UP) { in mlx4_en_ets_validate()
111 i, ets->prio_tc[i]); in mlx4_en_ets_validate()
115 switch (ets->tc_tsa[i]) { in mlx4_en_ets_validate()
120 total_ets_bw += ets->tc_tx_bw[i]; in mlx4_en_ets_validate()
124 i, ets->tc_tsa[i]); in mlx4_en_ets_validate()
143 int i; in mlx4_en_config_port_scheduler() local
151 for (i = IEEE_8021QAZ_MAX_TCS - 1; i >= 0; i--) { in mlx4_en_config_port_scheduler()
152 switch (ets->tc_tsa[i]) { in mlx4_en_config_port_scheduler()
[all …]
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dadf_hw_arbiter.c93 u32 arb, i; in adf_init_arb() local
103 for (i = 0; i < ADF_ARB_REQ_RING_NUM; i++) in adf_init_arb()
104 WRITE_CSR_ARB_WEIGHT(csr, arb, i, 0xFFFFFFFF); in adf_init_arb()
107 for (i = 0; i < ADF_ARB_REQ_RING_NUM; i++) in adf_init_arb()
108 WRITE_CSR_ARB_RESPORDERING(csr, i, 0xFFFFFFFF); in adf_init_arb()
111 for (i = 0; i < hw_data->num_engines; i++) in adf_init_arb()
112 WRITE_CSR_ARB_WQCFG(csr, i, i); in adf_init_arb()
120 for (i = 0; i < hw_data->num_engines; i++) in adf_init_arb()
121 WRITE_CSR_ARB_WRK_2_SER_MAP(csr, i, *(thd_2_arb_cfg + i)); in adf_init_arb()
145 unsigned int i; in adf_exit_arb() local
[all …]
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/
Dvxge-ethtool.c597 int i, j; in vxge_ethtool_get_strings() local
603 for (i = 0; i < vdev->no_of_vpath; i++) { in vxge_ethtool_get_strings()
605 &stat_size, data, i); in vxge_ethtool_get_strings()
607 &stat_size, data, i); in vxge_ethtool_get_strings()
609 &stat_size, data, i); in vxge_ethtool_get_strings()
611 &stat_size, data, i); in vxge_ethtool_get_strings()
613 &stat_size, data, i); in vxge_ethtool_get_strings()
615 &stat_size, data, i); in vxge_ethtool_get_strings()
617 &stat_size, data, i); in vxge_ethtool_get_strings()
619 &stat_size, data, i); in vxge_ethtool_get_strings()
[all …]
/linux-4.4.14/drivers/mtd/
Dmtdconcat.c73 int i; in concat_read() local
75 for (i = 0; i < concat->num_subdev; i++) { in concat_read()
76 struct mtd_info *subdev = concat->subdev[i]; in concat_read()
125 int i; in concat_write() local
127 for (i = 0; i < concat->num_subdev; i++) { in concat_write()
128 struct mtd_info *subdev = concat->subdev[i]; in concat_write()
165 int i; in concat_writev() local
169 for (i = 0; i < count; i++) in concat_writev()
170 total_len += vecs[i].iov_len; in concat_writev()
185 for (i = 0; i < concat->num_subdev; i++) { in concat_writev()
[all …]
/linux-4.4.14/drivers/tty/vt/
Dconsolemap.c186 static void set_inverse_transl(struct vc_data *conp, struct uni_pagedir *p, int i) in set_inverse_transl() argument
189 unsigned short *t = translations[i]; in set_inverse_transl()
193 q = p->inverse_translations[i]; in set_inverse_transl()
196 q = p->inverse_translations[i] = kmalloc(MAX_GLYPH, GFP_KERNEL); in set_inverse_transl()
213 int i, j, k, glyph; in set_inverse_trans_unicode() local
227 for (i = 0; i < 32; i++) { in set_inverse_trans_unicode()
228 p1 = p->uni_pgdir[i]; in set_inverse_trans_unicode()
239 q[glyph] = (i << 11) + (j << 6) + k; in set_inverse_trans_unicode()
286 int i; in update_user_maps() local
289 for (i = 0; i < MAX_NR_CONSOLES; i++) { in update_user_maps()
[all …]
/linux-4.4.14/arch/ia64/include/asm/
Datomic.h21 #define ATOMIC_INIT(i) { (i) } argument
22 #define ATOMIC64_INIT(i) { (i) } argument
27 #define atomic_set(v,i) WRITE_ONCE(((v)->counter), (i)) argument
28 #define atomic64_set(v,i) WRITE_ONCE(((v)->counter), (i)) argument
32 ia64_atomic_##op (int i, atomic_t *v) \
40 new = old c_op i; \
48 #define atomic_add_return(i,v) \ argument
50 int __ia64_aar_i = (i); \
51 (__builtin_constant_p(i) \
60 #define atomic_sub_return(i,v) \ argument
[all …]
/linux-4.4.14/drivers/video/fbdev/geode/
Dsuspend_gx.c22 int i; in gx_save_regs() local
26 i = read_gp(par, GP_BLT_STATUS); in gx_save_regs()
27 } while (i & (GP_BLT_STATUS_BLT_PENDING | GP_BLT_STATUS_BLT_BUSY)); in gx_save_regs()
43 for (i = 0; i < ARRAY_SIZE(par->pal); i++) in gx_save_regs()
44 par->pal[i] = read_dc(par, DC_PAL_DATA); in gx_save_regs()
50 int i; in gx_set_dotpll() local
58 for (i = 0; i < 200; i++) { in gx_set_dotpll()
72 int i; in gx_restore_gfx_proc() local
74 for (i = 0; i < ARRAY_SIZE(par->gp); i++) { in gx_restore_gfx_proc()
75 switch (i) { in gx_restore_gfx_proc()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/
Dgf100.c27 gf100_ibus_intr_hub(struct nvkm_subdev *ibus, int i) in gf100_ibus_intr_hub() argument
30 u32 addr = nvkm_rd32(device, 0x122120 + (i * 0x0400)); in gf100_ibus_intr_hub()
31 u32 data = nvkm_rd32(device, 0x122124 + (i * 0x0400)); in gf100_ibus_intr_hub()
32 u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0400)); in gf100_ibus_intr_hub()
33 nvkm_error(ibus, "HUB%d: %06x %08x (%08x)\n", i, addr, data, stat); in gf100_ibus_intr_hub()
34 nvkm_mask(device, 0x122128 + (i * 0x0400), 0x00000200, 0x00000000); in gf100_ibus_intr_hub()
38 gf100_ibus_intr_rop(struct nvkm_subdev *ibus, int i) in gf100_ibus_intr_rop() argument
41 u32 addr = nvkm_rd32(device, 0x124120 + (i * 0x0400)); in gf100_ibus_intr_rop()
42 u32 data = nvkm_rd32(device, 0x124124 + (i * 0x0400)); in gf100_ibus_intr_rop()
43 u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0400)); in gf100_ibus_intr_rop()
[all …]
Dgk104.c27 gk104_ibus_intr_hub(struct nvkm_subdev *ibus, int i) in gk104_ibus_intr_hub() argument
30 u32 addr = nvkm_rd32(device, 0x122120 + (i * 0x0800)); in gk104_ibus_intr_hub()
31 u32 data = nvkm_rd32(device, 0x122124 + (i * 0x0800)); in gk104_ibus_intr_hub()
32 u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0800)); in gk104_ibus_intr_hub()
33 nvkm_error(ibus, "HUB%d: %06x %08x (%08x)\n", i, addr, data, stat); in gk104_ibus_intr_hub()
34 nvkm_mask(device, 0x122128 + (i * 0x0800), 0x00000200, 0x00000000); in gk104_ibus_intr_hub()
38 gk104_ibus_intr_rop(struct nvkm_subdev *ibus, int i) in gk104_ibus_intr_rop() argument
41 u32 addr = nvkm_rd32(device, 0x124120 + (i * 0x0800)); in gk104_ibus_intr_rop()
42 u32 data = nvkm_rd32(device, 0x124124 + (i * 0x0800)); in gk104_ibus_intr_rop()
43 u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0800)); in gk104_ibus_intr_rop()
[all …]
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-i2c.c38 int i, ret; in mxl111sf_i2c_bitbang_sendbyte() local
47 for (i = 0; i < 8; i++) { in mxl111sf_i2c_bitbang_sendbyte()
49 data = (byte & (0x80 >> i)) ? SW_SDA_OUT : 0; in mxl111sf_i2c_bitbang_sendbyte()
100 int i, ret; in mxl111sf_i2c_bitbang_recvbyte() local
113 for (i = 0; i < 8; i++) { in mxl111sf_i2c_bitbang_recvbyte()
125 byte |= (0x80 >> i); in mxl111sf_i2c_bitbang_recvbyte()
241 int i, ret; in mxl111sf_i2c_sw_xfer_msg() local
258 for (i = 0; i < msg->len; i++) { in mxl111sf_i2c_sw_xfer_msg()
260 &msg->buf[i]); in mxl111sf_i2c_sw_xfer_msg()
266 if (i < msg->len - 1) in mxl111sf_i2c_sw_xfer_msg()
[all …]
/linux-4.4.14/drivers/s390/block/
Dxpram.c265 int i; in xpram_setup_sizes() local
280 for (i = 0; i < xpram_devs; i++) { in xpram_setup_sizes()
281 if (sizes[i]) { in xpram_setup_sizes()
282 size = simple_strtoull(sizes[i], &sizes_end, 0); in xpram_setup_sizes()
292 xpram_sizes[i] = (size + 3) & -4UL; in xpram_setup_sizes()
294 if (xpram_sizes[i]) in xpram_setup_sizes()
295 mem_needed += xpram_sizes[i]; in xpram_setup_sizes()
301 for (i = 0; i < xpram_devs; i++) { in xpram_setup_sizes()
302 if (xpram_sizes[i]) in xpram_setup_sizes()
304 i, xpram_sizes[i]); in xpram_setup_sizes()
[all …]
/linux-4.4.14/arch/arm/tools/
Dgen-mach-types37 for (i = 0; i < nr; i++)
38 if (num[i] ~ /..*/)
39 printf("#define %-30s %d\n", mach_type[i], num[i]);
43 for (i = 0; i < nr; i++)
44 if (num[i] ~ /..*/) {
45 printf("#ifdef %s\n", config[i]);
50 printf("# define machine_arch_type\t%s\n", mach_type[i]);
52 printf("# define %s()\t(machine_arch_type == %s)\n", machine_is[i], mach_type[i]);
54 printf("# define %s()\t(0)\n", machine_is[i]);
59 for (i = 0; i < nr; i++)
[all …]
/linux-4.4.14/drivers/thunderbolt/
Dpath.c65 int i, res; in __tb_path_deallocate_nfc() local
66 for (i = first_hop; i < path->path_length; i++) { in __tb_path_deallocate_nfc()
67 res = tb_port_add_nfc_credits(path->hops[i].in_port, in __tb_path_deallocate_nfc()
70 tb_port_warn(path->hops[i].in_port, in __tb_path_deallocate_nfc()
72 i); in __tb_path_deallocate_nfc()
78 int i, res; in __tb_path_deactivate_hops() local
80 for (i = first_hop; i < path->path_length; i++) { in __tb_path_deactivate_hops()
81 res = tb_port_write(path->hops[i].in_port, &hop, TB_CFG_HOPS, in __tb_path_deactivate_hops()
82 2 * path->hops[i].in_hop_index, 2); in __tb_path_deactivate_hops()
84 tb_port_warn(path->hops[i].in_port, in __tb_path_deactivate_hops()
[all …]
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dhotplug-memory.c84 int i; in dlpar_clone_drconf_property() local
110 for (i = 0; i < num_lmbs; i++) { in dlpar_clone_drconf_property()
111 lmbs[i].base_addr = be64_to_cpu(lmbs[i].base_addr); in dlpar_clone_drconf_property()
112 lmbs[i].drc_index = be32_to_cpu(lmbs[i].drc_index); in dlpar_clone_drconf_property()
113 lmbs[i].flags = be32_to_cpu(lmbs[i].flags); in dlpar_clone_drconf_property()
137 int i, nid; in pseries_remove_memblock() local
150 for (i = 0; i < sections_per_block; i++) { in pseries_remove_memblock()
193 int i, scns_per_block; in lmb_is_removable() local
205 for (i = 0; i < scns_per_block; i++) { in lmb_is_removable()
258 int i, rc; in dlpar_memory_remove_by_count() local
[all …]
/linux-4.4.14/arch/tile/include/asm/
Datomic_64.h27 #define atomic_set(v, i) WRITE_ONCE((v)->counter, (i)) argument
35 static inline void atomic_add(int i, atomic_t *v) in atomic_add() argument
37 __insn_fetchadd4((void *)&v->counter, i); in atomic_add()
40 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() argument
44 val = __insn_fetchadd4((void *)&v->counter, i) + i; in atomic_add_return()
61 static inline void atomic_and(int i, atomic_t *v) in atomic_and() argument
63 __insn_fetchand4((void *)&v->counter, i); in atomic_and()
66 static inline void atomic_or(int i, atomic_t *v) in atomic_or() argument
68 __insn_fetchor4((void *)&v->counter, i); in atomic_or()
71 static inline void atomic_xor(int i, atomic_t *v) in atomic_xor() argument
[all …]
/linux-4.4.14/include/asm-generic/
Dlocal64.h27 #define LOCAL64_INIT(i) { LOCAL_INIT(i) } argument
30 #define local64_set(l,i) local_set((&(l)->a),(i)) argument
33 #define local64_add(i,l) local_add((i),(&(l)->a)) argument
34 #define local64_sub(i,l) local_sub((i),(&(l)->a)) argument
36 #define local64_sub_and_test(i, l) local_sub_and_test((i), (&(l)->a)) argument
39 #define local64_add_negative(i, l) local_add_negative((i), (&(l)->a)) argument
40 #define local64_add_return(i, l) local_add_return((i), (&(l)->a)) argument
41 #define local64_sub_return(i, l) local_sub_return((i), (&(l)->a)) argument
53 #define __local64_add(i,l) local64_set((l), local64_read(l) + (i)) argument
54 #define __local64_sub(i,l) local64_set((l), local64_read(l) - (i)) argument
[all …]
/linux-4.4.14/arch/metag/kernel/
Dmodule.c27 unsigned int i, r_info, r_addend, _count_relocs; in count_relocs() local
32 for (i = 0; i < num; i++) in count_relocs()
34 if (ELF32_R_TYPE(rela[i].r_info) == R_METAG_RELBRANCH && in count_relocs()
35 (r_info != ELF32_R_SYM(rela[i].r_info) || in count_relocs()
36 r_addend != rela[i].r_addend)) { in count_relocs()
38 r_info = ELF32_R_SYM(rela[i].r_info); in count_relocs()
39 r_addend = rela[i].r_addend; in count_relocs()
71 int i; in relaswap() local
76 for (i = 0; i < sizeof(Elf32_Rela) / sizeof(uint32_t); i++) { in relaswap()
77 tmp = x[i]; in relaswap()
[all …]
/linux-4.4.14/drivers/scsi/fnic/
Dfnic_res.c212 unsigned int i; in fnic_free_vnic_resources() local
214 for (i = 0; i < fnic->raw_wq_count; i++) in fnic_free_vnic_resources()
215 vnic_wq_free(&fnic->wq[i]); in fnic_free_vnic_resources()
217 for (i = 0; i < fnic->wq_copy_count; i++) in fnic_free_vnic_resources()
218 vnic_wq_copy_free(&fnic->wq_copy[i]); in fnic_free_vnic_resources()
220 for (i = 0; i < fnic->rq_count; i++) in fnic_free_vnic_resources()
221 vnic_rq_free(&fnic->rq[i]); in fnic_free_vnic_resources()
223 for (i = 0; i < fnic->cq_count; i++) in fnic_free_vnic_resources()
224 vnic_cq_free(&fnic->cq[i]); in fnic_free_vnic_resources()
226 for (i = 0; i < fnic->intr_count; i++) in fnic_free_vnic_resources()
[all …]
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
Denic_res.c184 unsigned int i; in enic_free_vnic_resources() local
186 for (i = 0; i < enic->wq_count; i++) in enic_free_vnic_resources()
187 vnic_wq_free(&enic->wq[i]); in enic_free_vnic_resources()
188 for (i = 0; i < enic->rq_count; i++) in enic_free_vnic_resources()
189 vnic_rq_free(&enic->rq[i]); in enic_free_vnic_resources()
190 for (i = 0; i < enic->cq_count; i++) in enic_free_vnic_resources()
191 vnic_cq_free(&enic->cq[i]); in enic_free_vnic_resources()
192 for (i = 0; i < enic->intr_count; i++) in enic_free_vnic_resources()
193 vnic_intr_free(&enic->intr[i]); in enic_free_vnic_resources()
218 unsigned int i; in enic_init_vnic_resources() local
[all …]
/linux-4.4.14/arch/mips/jazz/
Djazzdma.c51 int i; in vdma_pgtbl_init() local
53 for (i = 0; i < VDMA_PGTBL_ENTRIES; i++) { in vdma_pgtbl_init()
54 pgtbl[i].frame = paddr; in vdma_pgtbl_init()
55 pgtbl[i].owner = VDMA_PAGE_EMPTY; in vdma_pgtbl_init()
94 int first, last, pages, frame, i; in vdma_alloc() local
141 for (i = first; i < last; i++) { in vdma_alloc()
142 pgtbl[i].frame = frame; in vdma_alloc()
143 pgtbl[i].owner = laddr; in vdma_alloc()
158 for (i = first; i < last; i++) in vdma_alloc()
159 printk("%08x ", i << 12); in vdma_alloc()
[all …]
/linux-4.4.14/drivers/infiniband/hw/usnic/
Dusnic_vnic.c99 int i, j, offset; in usnic_vnic_dump() local
118 for (i = 0; i < ARRAY_SIZE(vnic->chunks); i++) { in usnic_vnic_dump()
119 chunk = &vnic->chunks[i]; in usnic_vnic_dump()
142 int i; in usnic_vnic_res_spec_update() local
144 for (i = 0; i < USNIC_VNIC_RES_TYPE_MAX; i++) { in usnic_vnic_res_spec_update()
145 if (spec->resources[i].type == trgt_type) { in usnic_vnic_res_spec_update()
146 spec->resources[i].cnt = cnt; in usnic_vnic_res_spec_update()
157 int found, i, j; in usnic_vnic_res_spec_satisfied() local
159 for (i = 0; i < USNIC_VNIC_RES_TYPE_MAX; i++) { in usnic_vnic_res_spec_satisfied()
163 if (res_spec->resources[i].type != in usnic_vnic_res_spec_satisfied()
[all …]
/linux-4.4.14/arch/mips/dec/
Dsetup.c97 { { .i = ~0 }, { .p = dec_intr_unimplemented } },
100 { { .i = ~0 }, { .p = asic_intr_unimplemented } },
219 { { .i = DEC_CPU_IRQ_MASK(KN01_CPU_INR_BUS) },
220 { .i = DEC_CPU_IRQ_NR(KN01_CPU_INR_BUS) } },
221 { { .i = DEC_CPU_IRQ_MASK(KN01_CPU_INR_RTC) },
222 { .i = DEC_CPU_IRQ_NR(KN01_CPU_INR_RTC) } },
223 { { .i = DEC_CPU_IRQ_MASK(KN01_CPU_INR_DZ11) },
224 { .i = DEC_CPU_IRQ_NR(KN01_CPU_INR_DZ11) } },
225 { { .i = DEC_CPU_IRQ_MASK(KN01_CPU_INR_SII) },
226 { .i = DEC_CPU_IRQ_NR(KN01_CPU_INR_SII) } },
[all …]
/linux-4.4.14/arch/blackfin/mach-common/
Dscb-init.c17 unsigned int i; in scb_mi_write() local
19 for (i = 0; i < slots; ++i) in scb_mi_write()
20 bfin_write32(scb_mi_arbw, (i << SCB_SLOT_OFFSET) | scb_mi_prio[i]); in scb_mi_write()
27 unsigned int i; in scb_mi_read() local
29 for (i = 0; i < slots; ++i) { in scb_mi_read()
30 bfin_write32(scb_mi_arbw, (0xFF << SCB_SLOT_OFFSET) | i); in scb_mi_read()
31 scb_mi_prio[i] = bfin_read32(scb_mi_arbw); in scb_mi_read()
38 unsigned int i, j; in init_scb() local
42 for (i = 0; scb_data[i].scb_mi_arbr > 0; ++i) { in init_scb()
44 scb_mi_write(scb_data[i].scb_mi_arbw, scb_data[i].scb_mi_slots, scb_data[i].scb_mi_prio); in init_scb()
[all …]
/linux-4.4.14/drivers/acpi/
Dacpi_lpat.c34 int i, delta_temp, delta_raw, temp; in acpi_lpat_raw_to_temp() local
37 for (i = 0; i < lpat_table->lpat_count - 1; i++) { in acpi_lpat_raw_to_temp()
38 if ((raw >= lpat[i].raw && raw <= lpat[i+1].raw) || in acpi_lpat_raw_to_temp()
39 (raw <= lpat[i].raw && raw >= lpat[i+1].raw)) in acpi_lpat_raw_to_temp()
43 if (i == lpat_table->lpat_count - 1) in acpi_lpat_raw_to_temp()
46 delta_temp = lpat[i+1].temp - lpat[i].temp; in acpi_lpat_raw_to_temp()
47 delta_raw = lpat[i+1].raw - lpat[i].raw; in acpi_lpat_raw_to_temp()
48 temp = lpat[i].temp + (raw - lpat[i].raw) * delta_temp / delta_raw; in acpi_lpat_raw_to_temp()
68 int i, delta_temp, delta_raw, raw; in acpi_lpat_temp_to_raw() local
71 for (i = 0; i < lpat_table->lpat_count - 1; i++) { in acpi_lpat_temp_to_raw()
[all …]
/linux-4.4.14/arch/powerpc/kernel/
Dmodule_64.c157 unsigned int i; in is_module_trampoline() local
165 for (i = 0; i < ARRAY_SIZE(ppc64_stub_insns); i++) { in is_module_trampoline()
166 u32 insna = insns[i]; in is_module_trampoline()
167 u32 insnb = ppc64_stub_insns[i]; in is_module_trampoline()
168 u32 mask = ppc64_stub_mask[i]; in is_module_trampoline()
212 unsigned int i, r_info, r_addend, _count_relocs; in count_relocs() local
218 for (i = 0; i < num; i++) in count_relocs()
220 if (ELF64_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs()
221 (r_info != ELF64_R_SYM(rela[i].r_info) || in count_relocs()
222 r_addend != rela[i].r_addend)) { in count_relocs()
[all …]
Dmodule_32.c38 unsigned int i, r_info, r_addend, _count_relocs; in count_relocs() local
43 for (i = 0; i < num; i++) in count_relocs()
45 if (ELF32_R_TYPE(rela[i].r_info) == R_PPC_REL24 && in count_relocs()
46 (r_info != ELF32_R_SYM(rela[i].r_info) || in count_relocs()
47 r_addend != rela[i].r_addend)) { in count_relocs()
49 r_info = ELF32_R_SYM(rela[i].r_info); in count_relocs()
50 r_addend = rela[i].r_addend; in count_relocs()
85 int i; in relaswap() local
90 for (i = 0; i < sizeof(Elf32_Rela) / sizeof(uint32_t); i++) { in relaswap()
91 tmp = x[i]; in relaswap()
[all …]
/linux-4.4.14/net/netfilter/
Dnf_conntrack_ftp.c124 u_int32_t i, len; in try_number() local
129 for (i = 0, len = 0; len < dlen && i < array_size; len++, data++) { in try_number()
131 array[i] = array[i]*10 + *data - '0'; in try_number()
134 i++; in try_number()
139 if ((*data == term || !term) && i == array_size - 1) in try_number()
143 len, i, *data); in try_number()
184 int i; in try_rfc1123() local
185 for (i = 0; i < dlen; i++) in try_rfc1123()
186 if (isdigit(data[i])) in try_rfc1123()
189 if (i == dlen) in try_rfc1123()
[all …]
/linux-4.4.14/drivers/media/usb/dvb-usb/
Dusb-urb.c18 int i; in usb_urb_complete() local
42 for (i = 0; i < urb->number_of_packets; i++) { in usb_urb_complete()
44 if (urb->iso_frame_desc[i].status != 0) in usb_urb_complete()
45 deb_ts("iso frame descriptor has an error: %d\n",urb->iso_frame_desc[i].status); in usb_urb_complete()
46 else if (urb->iso_frame_desc[i].actual_length > 0) in usb_urb_complete()
47 … stream->complete(stream, b + urb->iso_frame_desc[i].offset, urb->iso_frame_desc[i].actual_length); in usb_urb_complete()
49 urb->iso_frame_desc[i].status = 0; in usb_urb_complete()
50 urb->iso_frame_desc[i].actual_length = 0; in usb_urb_complete()
67 int i; in usb_urb_kill() local
68 for (i = 0; i < stream->urbs_submitted; i++) { in usb_urb_kill()
[all …]
/linux-4.4.14/arch/microblaze/kernel/cpu/
Dcache.c162 int i; in __flush_icache_range_msr_irq() local
176 for (i = start; i < end; i += cpuinfo.icache_line_length) in __flush_icache_range_msr_irq()
178 : : "r" (i)); in __flush_icache_range_msr_irq()
189 int i; in __flush_icache_range_nomsr_irq() local
203 for (i = start; i < end; i += cpuinfo.icache_line_length) in __flush_icache_range_nomsr_irq()
205 : : "r" (i)); in __flush_icache_range_nomsr_irq()
216 int i; in __flush_icache_range_noirq() local
226 for (i = start; i < end; i += cpuinfo.icache_line_length) in __flush_icache_range_noirq()
228 : : "r" (i)); in __flush_icache_range_noirq()
236 int i; in __flush_icache_all_msr_irq() local
[all …]
/linux-4.4.14/drivers/hid/
Dhid-picolcd_leds.c66 int i, state = 0; in picolcd_led_set_brightness() local
73 for (i = 0; i < 8; i++) { in picolcd_led_set_brightness()
74 if (led_cdev != data->led[i]) in picolcd_led_set_brightness()
76 state = (data->led_state >> i) & 1; in picolcd_led_set_brightness()
78 data->led_state &= ~(1 << i); in picolcd_led_set_brightness()
81 data->led_state |= 1 << i; in picolcd_led_set_brightness()
93 int i, value = 0; in picolcd_led_get_brightness() local
98 for (i = 0; i < 8; i++) in picolcd_led_get_brightness()
99 if (led_cdev == data->led[i]) { in picolcd_led_get_brightness()
100 value = (data->led_state >> i) & 1; in picolcd_led_get_brightness()
[all …]
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000-i2c.c160 int addr, rc, i, byte; in tm6000_i2c_xfer() local
164 for (i = 0; i < num; i++) { in tm6000_i2c_xfer()
165 addr = (msgs[i].addr << 1) & 0xff; in tm6000_i2c_xfer()
167 (msgs[i].flags & I2C_M_RD) ? "read" : "write", in tm6000_i2c_xfer()
168 i == num - 1 ? "stop" : "nonstop", addr, msgs[i].len); in tm6000_i2c_xfer()
169 if (msgs[i].flags & I2C_M_RD) { in tm6000_i2c_xfer()
180 } else if (i + 1 < num && msgs[i].len <= 2 && in tm6000_i2c_xfer()
181 (msgs[i + 1].flags & I2C_M_RD) && in tm6000_i2c_xfer()
182 msgs[i].addr == msgs[i + 1].addr) { in tm6000_i2c_xfer()
185 for (byte = 0; byte < msgs[i].len; byte++) in tm6000_i2c_xfer()
[all …]
/linux-4.4.14/drivers/char/
Dapplicom.c170 unsigned int i; in applicom_exit() local
174 for (i = 0; i < MAX_BOARD; i++) { in applicom_exit()
176 if (!apbs[i].RamIO) in applicom_exit()
179 if (apbs[i].irq) in applicom_exit()
180 free_irq(apbs[i].irq, &dummy); in applicom_exit()
182 iounmap(apbs[i].RamIO); in applicom_exit()
188 int i, numisa = 0; in applicom_init() local
259 for (i = 0; i < MAX_ISA_BOARD; i++) { in applicom_init()
260 RamIO = ioremap_nocache(mem + (LEN_RAM_IO * i), LEN_RAM_IO); in applicom_init()
263 printk(KERN_INFO "ac.o: Failed to ioremap the ISA card's memory space (slot #%d)\n", i + 1); in applicom_init()
[all …]
/linux-4.4.14/arch/arm/mach-exynos/
Dpm_domains.c49 int i; in exynos_pd_power() local
54 for (i = 0; i < MAX_CLK_PER_DOMAIN; i++) { in exynos_pd_power()
55 if (IS_ERR(pd->asb_clk[i])) in exynos_pd_power()
57 clk_prepare_enable(pd->asb_clk[i]); in exynos_pd_power()
62 for (i = 0; i < MAX_CLK_PER_DOMAIN; i++) { in exynos_pd_power()
63 if (IS_ERR(pd->clk[i])) in exynos_pd_power()
65 pd->pclk[i] = clk_get_parent(pd->clk[i]); in exynos_pd_power()
66 if (clk_set_parent(pd->clk[i], pd->oscclk)) in exynos_pd_power()
68 pd->name, i); in exynos_pd_power()
91 for (i = 0; i < MAX_CLK_PER_DOMAIN; i++) { in exynos_pd_power()
[all …]
/linux-4.4.14/samples/bpf/
Dtracex2_user.c15 int i; in stars() local
17 for (i = 0; i < (width * val / max) - 1 && i < width - 1; i++) in stars()
18 str[i] = '*'; in stars()
20 str[i - 1] = '+'; in stars()
21 str[i] = '\0'; in stars()
45 int i, ind; in print_hist_for_pid() local
64 for (i = 1; i <= max_ind + 1; i++) { in print_hist_for_pid()
65 stars(starstr, data[i - 1], max_value, MAX_STARS); in print_hist_for_pid()
67 (1l << i) >> 1, (1l << i) - 1, data[i - 1], in print_hist_for_pid()
77 int i; in print_hist() local
[all …]
Dlathist_user.c29 int i; in stars() local
31 for (i = 0; i < (width * val / max) - 1 && i < width - 1; i++) in stars()
32 str[i] = '*'; in stars()
34 str[i - 1] = '+'; in stars()
35 str[i] = '\0'; in stars()
42 int i, j; in print_hist() local
56 for (i = 1; i <= MAX_ENTRIES; i++) { in print_hist()
57 stars(starstr, hist->data[i - 1], hist->max, MAX_STARS); in print_hist()
59 (1l << i) >> 1, (1l << i) - 1, in print_hist()
60 hist->data[i - 1], MAX_STARS, starstr); in print_hist()
[all …]
/linux-4.4.14/arch/x86/mm/kmemcheck/
Dshadow.c104 unsigned int i; in kmemcheck_mark_unallocated_pages() local
106 for (i = 0; i < n; ++i) in kmemcheck_mark_unallocated_pages()
107 kmemcheck_mark_unallocated(page_address(&p[i]), PAGE_SIZE); in kmemcheck_mark_unallocated_pages()
112 unsigned int i; in kmemcheck_mark_uninitialized_pages() local
114 for (i = 0; i < n; ++i) in kmemcheck_mark_uninitialized_pages()
115 kmemcheck_mark_uninitialized(page_address(&p[i]), PAGE_SIZE); in kmemcheck_mark_uninitialized_pages()
120 unsigned int i; in kmemcheck_mark_initialized_pages() local
122 for (i = 0; i < n; ++i) in kmemcheck_mark_initialized_pages()
123 kmemcheck_mark_initialized(page_address(&p[i]), PAGE_SIZE); in kmemcheck_mark_initialized_pages()
130 unsigned int i; in kmemcheck_shadow_test() local
[all …]
Dkmemcheck.c160 unsigned int i; in kmemcheck_show_all() local
164 for (i = 0; i < data->n_addrs; ++i) in kmemcheck_show_all()
165 n += kmemcheck_show_addr(data->addr[i]); in kmemcheck_show_all()
173 unsigned int i; in kmemcheck_hide_all() local
177 for (i = 0; i < data->n_addrs; ++i) in kmemcheck_hide_all()
178 n += kmemcheck_hide_addr(data->addr[i]); in kmemcheck_hide_all()
267 unsigned int i; in kmemcheck_show_pages() local
269 for (i = 0; i < n; ++i) { in kmemcheck_show_pages()
274 address = (unsigned long) page_address(&p[i]); in kmemcheck_show_pages()
293 unsigned int i; in kmemcheck_hide_pages() local
[all …]
/linux-4.4.14/arch/m68k/mm/
Dmotorola.c73 int i; in kernel_ptr_table() local
80 for (i = 0; i < PTRS_PER_PGD; i++) { in kernel_ptr_table()
81 if (!pgd_present(kernel_pg_dir[i])) in kernel_ptr_table()
83 pmd = __pgd_page(kernel_pg_dir[i]); in kernel_ptr_table()
161 int i; in map_node() local
171 for (i = 1; i < 64; physaddr += PAGE_SIZE, i++) in map_node()
211 int i; in paging_init() local
219 int i; in paging_init() local
223 for (i = 0; i < 16; i++) in paging_init()
224 pgprot_val(protection_map[i]) |= _PAGE_CACHE040; in paging_init()
[all …]
/linux-4.4.14/fs/jfs/
Djfs_unicode.c35 int i; in jfs_strfromUCS_le() local
41 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le()
44 codepage->uni2char(le16_to_cpu(from[i]), in jfs_strfromUCS_le()
53 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le()
54 if (unlikely(le16_to_cpu(from[i]) & 0xff00)) { in jfs_strfromUCS_le()
55 to[i] = '?'; in jfs_strfromUCS_le()
61 le16_to_cpu(from[i])); in jfs_strfromUCS_le()
68 to[i] = (char) (le16_to_cpu(from[i])); in jfs_strfromUCS_le()
70 outlen = i; in jfs_strfromUCS_le()
86 int i; in jfs_strtoUCS() local
[all …]
/linux-4.4.14/sound/pci/lola/
Dlola_proc.c64 int i, j, num_clocks; in print_clock_widget() local
70 for (i = 0; i < num_clocks; i += 4) { in print_clock_widget()
76 i, 0, &val, &res_ex); in print_clock_widget()
84 if (i + j >= num_clocks) in print_clock_widget()
96 i + j, type, name, freq); in print_clock_widget()
115 int i, nid; in lola_proc_codec_read() local
126 for (i = 0; i < chip->pcm[CAPT].num_streams; i++, nid++) in lola_proc_codec_read()
128 for (i = 0; i < chip->pcm[PLAY].num_streams; i++, nid++) in lola_proc_codec_read()
130 for (i = 0; i < chip->pin[CAPT].num_pins; i++, nid++) in lola_proc_codec_read()
133 for (i = 0; i < chip->pin[PLAY].num_pins; i++, nid++) in lola_proc_codec_read()
[all …]
/linux-4.4.14/drivers/media/common/
Dtveeprom.c52 #define STRM(array, i) \ argument
53 (i < sizeof(array) / sizeof(char *) ? array[i] : "unknown")
465 int i, j, len, done, beenhere, tag, start; in tveeprom_hauppauge_analog() local
500 for (i = start; !done && i < 256; i += len) { in tveeprom_hauppauge_analog()
501 if (eeprom_data[i] == 0x84) { in tveeprom_hauppauge_analog()
502 len = eeprom_data[i + 1] + (eeprom_data[i + 2] << 8); in tveeprom_hauppauge_analog()
503 i += 3; in tveeprom_hauppauge_analog()
504 } else if ((eeprom_data[i] & 0xf0) == 0x70) { in tveeprom_hauppauge_analog()
505 if (eeprom_data[i] & 0x08) { in tveeprom_hauppauge_analog()
510 len = eeprom_data[i] & 0x07; in tveeprom_hauppauge_analog()
[all …]
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/
Dper_event_excludes.c27 int i; in per_event_excludes() local
70 for (i = 1; i < 4; i++) in per_event_excludes()
71 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in per_event_excludes()
80 for (i = 0; i < INT_MAX; i++) in per_event_excludes()
85 for (i = 0; i < 4; i++) { in per_event_excludes()
86 FAIL_IF(event_read(&events[i])); in per_event_excludes()
87 event_report(&events[i]); in per_event_excludes()
94 for (i = 0; i < 4; i++) in per_event_excludes()
95 FAIL_IF(events[i].result.running != events[i].result.enabled); in per_event_excludes()
102 for (i = 1; i < 4; i++) in per_event_excludes()
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_dma.c50 int i; in drm_legacy_dma_setup() local
64 for (i = 0; i <= DRM_MAX_ORDER; i++) in drm_legacy_dma_setup()
65 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_legacy_dma_setup()
81 int i, j; in drm_legacy_dma_takedown() local
92 for (i = 0; i <= DRM_MAX_ORDER; i++) { in drm_legacy_dma_takedown()
93 if (dma->bufs[i].seg_count) { in drm_legacy_dma_takedown()
96 i, in drm_legacy_dma_takedown()
97 dma->bufs[i].buf_count, in drm_legacy_dma_takedown()
98 dma->bufs[i].seg_count); in drm_legacy_dma_takedown()
99 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_legacy_dma_takedown()
[all …]
/linux-4.4.14/drivers/mtd/tests/
Dspeedtest.c91 int i, err = 0; in write_eraseblock_by_page() local
95 for (i = 0; i < pgcnt; i++) { in write_eraseblock_by_page()
109 int i, n = pgcnt / 2, err = 0; in write_eraseblock_by_2pages() local
113 for (i = 0; i < n; i++) { in write_eraseblock_by_2pages()
135 int i, err = 0; in read_eraseblock_by_page() local
139 for (i = 0; i < pgcnt; i++) { in read_eraseblock_by_page()
153 int i, n = pgcnt / 2, err = 0; in read_eraseblock_by_2pages() local
157 for (i = 0; i < n; i++) { in read_eraseblock_by_2pages()
195 int err, i, blocks, j, k; in mtd_speedtest_init() local
254 for (i = 0; i < ebcnt; i++) { in mtd_speedtest_init()
[all …]
Dtorturetest.c183 int err = 0, i, infinite = !cycles_count; in tort_init() local
249 for (i = 0; i < mtd->erasesize / pgsize; i++) { in tort_init()
250 if (!(i & 1)) { in tort_init()
251 memset(patt_5A5 + i * pgsize, 0x55, pgsize); in tort_init()
252 memset(patt_A5A + i * pgsize, 0xAA, pgsize); in tort_init()
254 memset(patt_5A5 + i * pgsize, 0xAA, pgsize); in tort_init()
255 memset(patt_A5A + i * pgsize, 0x55, pgsize); in tort_init()
265 int i; in tort_init() local
274 for (i = eb; i < eb + ebcnt; i++) { in tort_init()
275 if (bad_ebs[i - eb]) in tort_init()
[all …]
/linux-4.4.14/arch/mips/kernel/
Drtlx-cmp.c24 int i; in rtlx_interrupt() local
34 for (i = 0; i < RTLX_CHANNELS; i++) { in rtlx_interrupt()
35 wake_up(&channel_wqs[i].lx_queue); in rtlx_interrupt()
36 wake_up(&channel_wqs[i].rt_queue); in rtlx_interrupt()
50 int i, err; in rtlx_module_init() local
71 for (i = 0; i < RTLX_CHANNELS; i++) { in rtlx_module_init()
72 init_waitqueue_head(&channel_wqs[i].rt_queue); in rtlx_module_init()
73 init_waitqueue_head(&channel_wqs[i].lx_queue); in rtlx_module_init()
74 atomic_set(&channel_wqs[i].in_open, 0); in rtlx_module_init()
75 mutex_init(&channel_wqs[i].mutex); in rtlx_module_init()
[all …]
Dptrace.c105 int i; in ptrace_getregs() local
112 for (i = 0; i < 32; i++) in ptrace_getregs()
113 __put_user((long)regs->regs[i], (__s64 __user *)&data->regs[i]); in ptrace_getregs()
132 int i; in ptrace_setregs() local
139 for (i = 0; i < 32; i++) in ptrace_setregs()
140 __get_user(regs->regs[i], (__s64 __user *)&data->regs[i]); in ptrace_setregs()
152 int i; in ptrace_getfpregs() local
159 for (i = 0; i < 32; i++) in ptrace_getfpregs()
160 __put_user(get_fpr64(&fregs[i], 0), in ptrace_getfpregs()
161 i + (__u64 __user *)data); in ptrace_getfpregs()
[all …]
Drtlx-mt.c37 int i; in rtlx_interrupt() local
46 for (i = 0; i < RTLX_CHANNELS; i++) { in rtlx_interrupt()
47 wake_up(&channel_wqs[i].lx_queue); in rtlx_interrupt()
48 wake_up(&channel_wqs[i].rt_queue); in rtlx_interrupt()
76 int i, err; in rtlx_module_init() local
97 for (i = 0; i < RTLX_CHANNELS; i++) { in rtlx_module_init()
98 init_waitqueue_head(&channel_wqs[i].rt_queue); in rtlx_module_init()
99 init_waitqueue_head(&channel_wqs[i].lx_queue); in rtlx_module_init()
100 atomic_set(&channel_wqs[i].in_open, 0); in rtlx_module_init()
101 mutex_init(&channel_wqs[i].mutex); in rtlx_module_init()
[all …]
/linux-4.4.14/arch/x86/crypto/
Daes_ctrby8_avx-x86_64.S95 #define DDQ(i) CONCAT(ddq_add_,i) argument
96 #define XMM(i) CONCAT(%xmm, i) argument
169 .set i, 1 define
171 club DDQ_DATA, i
172 club XDATA, i
180 .set i, (i +1) define
193 .set i, 1 define
195 club XDATA, i
197 .set i, (i +1) define
202 .set i, 0 define
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_dcb.c66 int i; in i40e_parse_ieee_etscfg_tlv() local
94 for (i = 0; i < 4; i++) { in i40e_parse_ieee_etscfg_tlv()
97 etscfg->prioritytable[i * 2] = priority; in i40e_parse_ieee_etscfg_tlv()
100 etscfg->prioritytable[i * 2 + 1] = priority; in i40e_parse_ieee_etscfg_tlv()
110 for (i = 0; i < I40E_MAX_TRAFFIC_CLASS; i++) in i40e_parse_ieee_etscfg_tlv()
111 etscfg->tcbwtable[i] = buf[offset++]; in i40e_parse_ieee_etscfg_tlv()
119 for (i = 0; i < I40E_MAX_TRAFFIC_CLASS; i++) in i40e_parse_ieee_etscfg_tlv()
120 etscfg->tsatable[i] = buf[offset++]; in i40e_parse_ieee_etscfg_tlv()
136 int i; in i40e_parse_ieee_etsrec_tlv() local
149 for (i = 0; i < 4; i++) { in i40e_parse_ieee_etsrec_tlv()
[all …]
/linux-4.4.14/drivers/acpi/acpica/
Dutstring.c67 u32 i; in acpi_ut_print_string() local
75 for (i = 0; (i < max_length) && string[i]; i++) { in acpi_ut_print_string()
79 switch (string[i]) { in acpi_ut_print_string()
119 acpi_os_printf("\\%c", (int)string[i]); in acpi_ut_print_string()
126 if (isprint((int)string[i])) { in acpi_ut_print_string()
129 acpi_os_printf("%c", (int)string[i]); in acpi_ut_print_string()
133 acpi_os_printf("\\x%2.2X", (s32) string[i]); in acpi_ut_print_string()
140 if (i == max_length && string[i]) { in acpi_ut_print_string()
199 u32 i; in acpi_ut_valid_acpi_name() local
203 for (i = 0; i < ACPI_NAME_SIZE; i++) { in acpi_ut_valid_acpi_name()
[all …]
/linux-4.4.14/arch/powerpc/oprofile/
Dop_model_cell.c242 int i, j; in pm_rtas_activate_signals() local
253 i = 0; in pm_rtas_activate_signals()
258 pm_signal_local[i].cpu = node; in pm_rtas_activate_signals()
259 pm_signal_local[i].signal_group in pm_rtas_activate_signals()
261 pm_signal_local[i].bus_word = pm_signal[j].bus_word; in pm_rtas_activate_signals()
262 pm_signal_local[i].sub_unit = pm_signal[j].sub_unit; in pm_rtas_activate_signals()
263 pm_signal_local[i].bit = pm_signal[j].bit; in pm_rtas_activate_signals()
264 i++; in pm_rtas_activate_signals()
268 if (i != 0) { in pm_rtas_activate_signals()
271 i * sizeof(struct pm_signal)); in pm_rtas_activate_signals()
[all …]
Dop_model_fsl_emb.c87 static inline unsigned int ctr_read(unsigned int i) in ctr_read() argument
89 switch(i) { in ctr_read()
107 static inline void ctr_write(unsigned int i, unsigned int val) in ctr_write() argument
109 switch(i) { in ctr_write()
261 int i; in fsl_emb_cpu_setup() local
266 for (i = 0;i < num_counters;i++) { in fsl_emb_cpu_setup()
267 init_pmc_stop(i); in fsl_emb_cpu_setup()
269 set_pmc_event(i, ctr[i].event); in fsl_emb_cpu_setup()
271 set_pmc_user_kernel(i, ctr[i].user, ctr[i].kernel); in fsl_emb_cpu_setup()
281 int i; in fsl_emb_reg_setup() local
[all …]
/linux-4.4.14/drivers/staging/fbtft/
Dfb_hx8347d.c111 int i, j; in set_gamma() local
115 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
117 acc += CURVE(i, j); in set_gamma()
118 CURVE(i, j) &= mask[j]; in set_gamma()
124 for (i = 0; i < par->gamma.num_curves; i++) { in set_gamma()
125 write_reg(par, 0x40 + (i * 0x10), CURVE(i, 0)); in set_gamma()
126 write_reg(par, 0x41 + (i * 0x10), CURVE(i, 1)); in set_gamma()
127 write_reg(par, 0x42 + (i * 0x10), CURVE(i, 2)); in set_gamma()
128 write_reg(par, 0x43 + (i * 0x10), CURVE(i, 3)); in set_gamma()
129 write_reg(par, 0x44 + (i * 0x10), CURVE(i, 4)); in set_gamma()
[all …]
Dfb_st7735r.c141 int i, j; in set_gamma() local
144 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
146 CURVE(i, j) &= 0x3f; in set_gamma()
148 for (i = 0; i < par->gamma.num_curves; i++) in set_gamma()
149 write_reg(par, 0xE0 + i, in set_gamma()
150 CURVE(i, 0), CURVE(i, 1), CURVE(i, 2), CURVE(i, 3), in set_gamma()
151 CURVE(i, 4), CURVE(i, 5), CURVE(i, 6), CURVE(i, 7), in set_gamma()
152 CURVE(i, 8), CURVE(i, 9), CURVE(i, 10), CURVE(i, 11), in set_gamma()
153 CURVE(i, 12), CURVE(i, 13), CURVE(i, 14), CURVE(i, 15)); in set_gamma()
/linux-4.4.14/arch/sparc/mm/
Dinit_32.c73 int i; in calc_highpages() local
76 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in calc_highpages()
77 unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_highpages()
78 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages()
94 int i; in calc_max_low_pfn() local
99 for (i = 1; sp_banks[i].num_bytes != 0; i++) { in calc_max_low_pfn()
100 curr_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_max_low_pfn()
108 last_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
119 int i; in bootmem_init() local
122 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in bootmem_init()
[all …]
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-vbi-gen.c43 int i; in vivid_vbi_gen_wss_raw() local
49 for (i = 0; i <= 13; i++, bit += 6) in vivid_vbi_gen_wss_raw()
50 wss_insert(wss + bit, (wss_data & (1 << i)) ? one : zero, 6); in vivid_vbi_gen_wss_raw()
52 for (i = 0, bit = 0; bit < sizeof(wss); bit++) { in vivid_vbi_gen_wss_raw()
55 while (i < n) in vivid_vbi_gen_wss_raw()
56 buf[i++] = wss[bit]; in vivid_vbi_gen_wss_raw()
66 int i; in vivid_vbi_gen_teletext_raw() local
72 for (i = 0, bit = 0; bit < sizeof(teletext) * 8; bit++) { in vivid_vbi_gen_teletext_raw()
76 while (i < n) in vivid_vbi_gen_teletext_raw()
77 buf[i++] = val; in vivid_vbi_gen_teletext_raw()
[all …]
/linux-4.4.14/arch/parisc/mm/
Dinit.c130 int i, sysram_resource_count; in setup_bootmem() local
140 for (i = 1; i < npmem_ranges; i++) { in setup_bootmem()
143 for (j = i; j > 0; j--) { in setup_bootmem()
166 for (i = 1; i < npmem_ranges; i++) { in setup_bootmem()
167 if (pmem_ranges[i].start_pfn - in setup_bootmem()
168 (pmem_ranges[i-1].start_pfn + in setup_bootmem()
169 pmem_ranges[i-1].pages) > MAX_GAP) { in setup_bootmem()
170 npmem_ranges = i; in setup_bootmem()
173 pmem_ranges[i].start_pfn - in setup_bootmem()
174 (pmem_ranges[i-1].start_pfn + in setup_bootmem()
[all …]
/linux-4.4.14/arch/frv/include/asm/
Datomic.h34 #define ATOMIC_INIT(i) { (i) } argument
36 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) argument
48 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() argument
50 return __atomic_add_return(i, &v->counter); in atomic_add_return()
53 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() argument
55 return __atomic_sub_return(i, &v->counter); in atomic_sub_return()
58 static inline int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative() argument
60 return atomic_add_return(i, v) < 0; in atomic_add_negative()
63 static inline void atomic_add(int i, atomic_t *v) in atomic_add() argument
65 atomic_add_return(i, v); in atomic_add()
[all …]
/linux-4.4.14/drivers/base/regmap/
Dregmap-irq.c64 int i, ret; in regmap_irq_sync_unlock() local
80 for (i = 0; i < d->chip->num_regs; i++) { in regmap_irq_sync_unlock()
82 (i * map->reg_stride * d->irq_reg_stride); in regmap_irq_sync_unlock()
85 d->mask_buf_def[i], ~d->mask_buf[i]); in regmap_irq_sync_unlock()
89 d->mask_buf_def[i], ~d->mask_buf[i]); in regmap_irq_sync_unlock()
99 d->mask_buf_def[i], in regmap_irq_sync_unlock()
100 d->mask_buf[i]); in regmap_irq_sync_unlock()
103 d->mask_buf_def[i], d->mask_buf[i]); in regmap_irq_sync_unlock()
110 (i * map->reg_stride * d->irq_reg_stride); in regmap_irq_sync_unlock()
114 d->mask_buf_def[i], in regmap_irq_sync_unlock()
[all …]
/linux-4.4.14/drivers/gpu/drm/msm/
Dmsm_fb.c44 int i, n = drm_format_num_planes(fb->pixel_format); in msm_framebuffer_destroy() local
50 for (i = 0; i < n; i++) { in msm_framebuffer_destroy()
51 struct drm_gem_object *bo = msm_fb->planes[i]; in msm_framebuffer_destroy()
76 int i, n = drm_format_num_planes(fb->pixel_format); in msm_framebuffer_describe() local
82 for (i = 0; i < n; i++) { in msm_framebuffer_describe()
84 i, fb->offsets[i], fb->pitches[i]); in msm_framebuffer_describe()
85 msm_gem_describe(msm_fb->planes[i], m); in msm_framebuffer_describe()
98 int ret, i, n = drm_format_num_planes(fb->pixel_format); in msm_framebuffer_prepare() local
101 for (i = 0; i < n; i++) { in msm_framebuffer_prepare()
102 ret = msm_gem_get_iova(msm_fb->planes[i], id, &iova); in msm_framebuffer_prepare()
[all …]
/linux-4.4.14/arch/x86/entry/vdso/
Dvdso2c.h15 int i; in BITSFUNC() local
26 for (i = 0; i < GET_LE(&hdr->e_phnum); i++) { in BITSFUNC()
27 if (GET_LE(&pt[i].p_type) == PT_LOAD) { in BITSFUNC()
31 if (GET_LE(&pt[i].p_offset) != 0 || in BITSFUNC()
32 GET_LE(&pt[i].p_vaddr) != 0) in BITSFUNC()
35 if (GET_LE(&pt[i].p_memsz) != GET_LE(&pt[i].p_filesz)) in BITSFUNC()
38 load_size = GET_LE(&pt[i].p_memsz); in BITSFUNC()
40 } else if (GET_LE(&pt[i].p_type) == PT_DYNAMIC) { in BITSFUNC()
41 dyn = raw_addr + GET_LE(&pt[i].p_offset); in BITSFUNC()
42 dyn_end = raw_addr + GET_LE(&pt[i].p_offset) + in BITSFUNC()
[all …]
/linux-4.4.14/arch/arm/mach-imx/
Dtzic.c41 #define TZIC_INTSEC0(i) (0x0080 + ((i) << 2)) /* Interrupt Security Reg 0 */ argument
42 #define TZIC_ENSET0(i) (0x0100 + ((i) << 2)) /* Enable Set Reg 0 */ argument
43 #define TZIC_ENCLEAR0(i) (0x0180 + ((i) << 2)) /* Enable Clear Reg 0 */ argument
48 #define TZIC_HIPND(i) (0x0D80+ ((i) << 2)) /* High Priority Pending Register */ argument
49 #define TZIC_WAKEUP0(i) (0x0E00 + ((i) << 2)) /* Wakeup Config Register */ argument
132 int i, irqofs, handled; in tzic_handle_irq() local
137 for (i = 0; i < 4; i++) { in tzic_handle_irq()
138 stat = __raw_readl(tzic_base + TZIC_HIPND(i)) & in tzic_handle_irq()
139 __raw_readl(tzic_base + TZIC_INTSEC0(i)); in tzic_handle_irq()
144 handle_domain_irq(domain, irqofs + i * 32, regs); in tzic_handle_irq()
[all …]
/linux-4.4.14/fs/xfs/
Dxfs_error.c37 int i; in xfs_error_test() local
45 for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { in xfs_error_test()
46 if (xfs_etest[i] == error_tag && xfs_etest_fsid[i] == fsid) { in xfs_error_test()
49 expression, file, line, xfs_etest_fsname[i]); in xfs_error_test()
60 int i; in xfs_errortag_add() local
66 for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { in xfs_errortag_add()
67 if (xfs_etest_fsid[i] == fsid && xfs_etest[i] == error_tag) { in xfs_errortag_add()
73 for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { in xfs_errortag_add()
74 if (xfs_etest[i] == 0) { in xfs_errortag_add()
77 xfs_etest[i] = error_tag; in xfs_errortag_add()
[all …]
/linux-4.4.14/arch/sh/kernel/cpu/sh4a/
Dubc.c49 int i; in sh4a_ubc_enable_all() local
51 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_enable_all()
52 if (mask & (1 << i)) in sh4a_ubc_enable_all()
53 __raw_writel(__raw_readl(UBC_CBR(i)) | UBC_CBR_CE, in sh4a_ubc_enable_all()
54 UBC_CBR(i)); in sh4a_ubc_enable_all()
59 int i; in sh4a_ubc_disable_all() local
61 for (i = 0; i < sh4a_ubc.num_events; i++) in sh4a_ubc_disable_all()
62 __raw_writel(__raw_readl(UBC_CBR(i)) & ~UBC_CBR_CE, in sh4a_ubc_disable_all()
63 UBC_CBR(i)); in sh4a_ubc_disable_all()
69 int i; in sh4a_ubc_active_mask() local
[all …]
/linux-4.4.14/arch/microblaze/kernel/
Dkgdb.c39 unsigned int i; in pt_regs_to_gdb_regs() local
44 for (i = 0; i < (sizeof(struct pt_regs) / 4) - 1; i++) in pt_regs_to_gdb_regs()
45 gdb_regs[i] = pt_regb[i]; in pt_regs_to_gdb_regs()
52 for (i = 0; i < sizeof(struct pvr_s)/4; i++) in pt_regs_to_gdb_regs()
53 gdb_regs[GDB_PVR + i] = pvr.pvr[i]; in pt_regs_to_gdb_regs()
72 unsigned int i; in gdb_regs_to_pt_regs() local
78 for (i = 1; i < (sizeof(struct pt_regs) / 4) - 1; i++) in gdb_regs_to_pt_regs()
79 pt_regb[i] = gdb_regs[i]; in gdb_regs_to_pt_regs()
96 unsigned int i; in sleeping_thread_to_gdb_regs() local
100 for (i = 0; i < (sizeof(struct pt_regs) / 4) - 1; i++) in sleeping_thread_to_gdb_regs()
[all …]
/linux-4.4.14/arch/mips/txx9/generic/
Dsetup_tx3927.c33 int i; in tx3927_setup() local
40 for (i = 0; i < 8; i++) { in tx3927_setup()
41 if (!(tx3927_romcptr->cr[i] & 0x8)) in tx3927_setup()
43 txx9_ce_res[i].start = (unsigned long)TX3927_ROMC_BA(i); in tx3927_setup()
44 txx9_ce_res[i].end = in tx3927_setup()
45 txx9_ce_res[i].start + TX3927_ROMC_SIZE(i) - 1; in tx3927_setup()
46 request_resource(&iomem_resource, &txx9_ce_res[i]); in tx3927_setup()
75 for (i = 0; i < TX3927_NR_TMR; i++) in tx3927_setup()
76 txx9_tmr_init(TX3927_TMR_REG(i)); in tx3927_setup()
80 for (i = 0; i < ARRAY_SIZE(tx3927_dmaptr->ch); i++) { in tx3927_setup()
[all …]
/linux-4.4.14/net/ceph/
Dpagevec.c47 int i; in ceph_put_page_vector() local
49 for (i = 0; i < num_pages; i++) { in ceph_put_page_vector()
51 set_page_dirty_lock(pages[i]); in ceph_put_page_vector()
52 put_page(pages[i]); in ceph_put_page_vector()
60 int i; in ceph_release_page_vector() local
62 for (i = 0; i < num_pages; i++) in ceph_release_page_vector()
63 __free_pages(pages[i], 0); in ceph_release_page_vector()
74 int i; in ceph_alloc_page_vector() local
79 for (i = 0; i < num_pages; i++) { in ceph_alloc_page_vector()
80 pages[i] = __page_cache_alloc(flags); in ceph_alloc_page_vector()
[all …]
/linux-4.4.14/arch/arm/mach-omap2/
Domap-wakeupgen.c96 u8 i; in _wakeupgen_clear() local
98 if (_wakeupgen_get_irq_info(irq, &bit_number, &i)) in _wakeupgen_clear()
101 val = wakeupgen_readl(i, cpu); in _wakeupgen_clear()
103 wakeupgen_writel(val, i, cpu); in _wakeupgen_clear()
109 u8 i; in _wakeupgen_set() local
111 if (_wakeupgen_get_irq_info(irq, &bit_number, &i)) in _wakeupgen_set()
114 val = wakeupgen_readl(i, cpu); in _wakeupgen_set()
116 wakeupgen_writel(val, i, cpu); in _wakeupgen_set()
150 u8 i; in _wakeupgen_save_masks() local
152 for (i = 0; i < irq_banks; i++) in _wakeupgen_save_masks()
[all …]
/linux-4.4.14/drivers/block/
Dcpqarray.c150 static void free_hba(int i);
182 static void ida_procinit(int i);
184 static void ida_procinit(int i) {} in ida_procinit() argument
217 static void __init ida_procinit(int i) in ida_procinit() argument
224 proc_create_data(hba[i]->devname, 0, proc_array, &ida_proc_fops, hba[i]); in ida_procinit()
232 int i, ctlr; in ida_proc_show() local
263 for(i=0; i<h->log_drives; i++) { in ida_proc_show()
264 drv = &h->drv[i]; in ida_proc_show()
266 ctlr, i, drv->blk_size, drv->nr_blks); in ida_proc_show()
323 static void cpqarray_remove_one(int i) in cpqarray_remove_one() argument
[all …]
/linux-4.4.14/drivers/media/usb/pvrusb2/
Dpvrusb2-util.h23 #define PVR2_DECOMPOSE_LE(t,i,d) \ argument
25 (t)[i] = (d) & 0xff;\
26 (t)[i+1] = ((d) >> 8) & 0xff;\
27 (t)[i+2] = ((d) >> 16) & 0xff;\
28 (t)[i+3] = ((d) >> 24) & 0xff;\
31 #define PVR2_DECOMPOSE_BE(t,i,d) \ argument
33 (t)[i+3] = (d) & 0xff;\
34 (t)[i+2] = ((d) >> 8) & 0xff;\
35 (t)[i+1] = ((d) >> 16) & 0xff;\
36 (t)[i] = ((d) >> 24) & 0xff;\
[all …]
/linux-4.4.14/Documentation/auxdisplay/
Dcfag12864b-example.c142 unsigned short i; in cfag12864b_fill() local
144 for (i = 0; i < CFAG12864B_SIZE; i++) in cfag12864b_fill()
145 cfag12864b_buffer[i] = 0xFF; in cfag12864b_fill()
153 unsigned short i; in cfag12864b_clear() local
155 for (i = 0; i < CFAG12864B_SIZE; i++) in cfag12864b_clear()
156 cfag12864b_buffer[i] = 0; in cfag12864b_clear()
167 unsigned char i, j, n; in cfag12864b_format() local
169 for (i = 0; i < CFAG12864B_HEIGHT; i++) in cfag12864b_format()
171 cfag12864b_buffer[i * CFAG12864B_WIDTH / CFAG12864B_BPB + in cfag12864b_format()
174 if (matrix[i * CFAG12864B_WIDTH + in cfag12864b_format()
[all …]
/linux-4.4.14/net/mac80211/
Drate.c261 u8 i; in rc_send_low_basicrate() local
270 for (i = *idx + 1; i <= sband->n_bitrates; i++) { in rc_send_low_basicrate()
271 if (basic_rates & (1 << i)) { in rc_send_low_basicrate()
272 *idx = i; in rc_send_low_basicrate()
286 int i; in __rate_control_send_low() local
295 for (i = 0; i < sband->n_bitrates; i++) { in __rate_control_send_low()
296 if (!(rate_mask & BIT(i))) in __rate_control_send_low()
299 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in __rate_control_send_low()
302 if (!rate_supported(sta, sband->band, i)) in __rate_control_send_low()
305 info->control.rates[0].idx = i; in __rate_control_send_low()
[all …]
/linux-4.4.14/arch/mips/math-emu/
Dieee754d.c36 int i; in ieee754dp_dump() local
46 for (i = DP_FBITS - 1; i >= 0; i--) in ieee754dp_dump()
47 printk("%c", DPMANT(x) & DP_MBIT(i) ? '1' : '0'); in ieee754dp_dump()
57 for (i = DP_FBITS - 1; i >= 0; i--) in ieee754dp_dump()
58 printk("%c", DPMANT(x) & DP_MBIT(i) ? '1' : '0'); in ieee754dp_dump()
63 for (i = DP_FBITS - 1; i >= 0; i--) in ieee754dp_dump()
64 printk("%c", DPMANT(x) & DP_MBIT(i) ? '1' : '0'); in ieee754dp_dump()
76 int i; in ieee754sp_dump() local
85 for (i = SP_FBITS - 1; i >= 0; i--) in ieee754sp_dump()
86 printk("%c", SPMANT(x) & SP_MBIT(i) ? '1' : '0'); in ieee754sp_dump()
[all …]
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dquota.c143 int i, phy_id = -1, beacon_int = 0; in iwl_mvm_adjust_quota_for_noa() local
155 for (i = 0; i < MAX_BINDINGS; i++) { in iwl_mvm_adjust_quota_for_noa()
156 u32 id_n_c = le32_to_cpu(cmd->quotas[i].id_and_color); in iwl_mvm_adjust_quota_for_noa()
158 u32 quota = le32_to_cpu(cmd->quotas[i].quota); in iwl_mvm_adjust_quota_for_noa()
167 le32_to_cpu(cmd->quotas[i].quota), quota); in iwl_mvm_adjust_quota_for_noa()
169 cmd->quotas[i].quota = cpu_to_le32(quota); in iwl_mvm_adjust_quota_for_noa()
179 int i, idx, err, num_active_macs, quota, quota_rem, n_non_lowlat; in iwl_mvm_update_quotas() local
207 for (i = 0; i < MAX_BINDINGS; i++) { in iwl_mvm_update_quotas()
208 cmd.quotas[i].id_and_color = cpu_to_le32(FW_CTXT_INVALID); in iwl_mvm_update_quotas()
209 num_active_macs += data.n_interfaces[i]; in iwl_mvm_update_quotas()
[all …]
/linux-4.4.14/drivers/xen/events/
Devents_2l.c142 #define MASK_LSBS(w, i) (w & ((~((xen_ulong_t)0UL)) << i)) argument
168 int i; in evtchn_2l_handle_events() local
194 for (i = 0; pending_words != 0; i++) { in evtchn_2l_handle_events()
224 if (i == 0) in evtchn_2l_handle_events()
257 if ((word_idx != start_word_idx) || (i != 0)) in evtchn_2l_handle_events()
269 int i; in xen_debug_interrupt() local
278 for_each_online_cpu(i) { in xen_debug_interrupt()
280 v = per_cpu(xen_vcpu, i); in xen_debug_interrupt()
281 pending = (get_irq_regs() && i == cpu) in xen_debug_interrupt()
284 printk("%d: masked=%d pending=%d event_sel %0*"PRI_xen_ulong"\n ", i, in xen_debug_interrupt()
[all …]
/linux-4.4.14/drivers/video/
Dvgastate.c51 int i; in save_vga_text() local
88 for (i = 0; i < 4 * 8192; i++) in save_vga_text()
89 saved->vga_font0[i] = vga_r(fbbase, i); in save_vga_text()
99 for (i = 0; i < state->memsize; i++) in save_vga_text()
100 saved->vga_font1[i] = vga_r(fbbase, i); in save_vga_text()
110 for (i = 0; i < 8192; i++) in save_vga_text()
111 saved->vga_text[i] = vga_r(fbbase, i); in save_vga_text()
118 for (i = 0; i < 8192; i++) in save_vga_text()
119 saved->vga_text[8192+i] = vga_r(fbbase + 2 * 8192, i); in save_vga_text()
141 int i; in restore_vga_text() local
[all …]
/linux-4.4.14/arch/avr32/include/asm/
Datomic.h20 #define ATOMIC_INIT(i) { (i) } argument
23 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) argument
26 static inline int __atomic_##op##_return(int i, atomic_t *v) \
38 : "m" (v->counter), #asm_con (i) \
49 static inline void atomic_##op(int i, atomic_t *v) \ in ATOMIC_OP_RETURN()
51 (void)__atomic_##op##_return(i, v); \ in ATOMIC_OP_RETURN()
72 #define IS_21BIT_CONST(i) \ argument
73 (__builtin_constant_p(i) && ((i) >= -1048575) && ((i) <= 1048576))
82 static inline int atomic_add_return(int i, atomic_t *v)
84 if (IS_21BIT_CONST(i))
[all …]
/linux-4.4.14/kernel/
Drange.c30 int i; in add_range_with_merge() local
36 for (i = 0; i < nr_range; i++) { in add_range_with_merge()
39 if (!range[i].end) in add_range_with_merge()
42 common_start = max(range[i].start, start); in add_range_with_merge()
43 common_end = min(range[i].end, end); in add_range_with_merge()
48 start = min(range[i].start, start); in add_range_with_merge()
49 end = max(range[i].end, end); in add_range_with_merge()
51 memmove(&range[i], &range[i + 1], in add_range_with_merge()
52 (nr_range - (i + 1)) * sizeof(range[i])); in add_range_with_merge()
56 i--; in add_range_with_merge()
[all …]
/linux-4.4.14/drivers/net/ethernet/natsemi/
Dsonic.c48 int i; in sonic_open() local
53 for (i = 0; i < SONIC_NUM_RRS; i++) { in sonic_open()
56 while(i > 0) { /* free any that were allocated successfully */ in sonic_open()
57 i--; in sonic_open()
58 dev_kfree_skb(lp->rx_skb[i]); in sonic_open()
59 lp->rx_skb[i] = NULL; in sonic_open()
68 lp->rx_skb[i] = skb; in sonic_open()
71 for (i = 0; i < SONIC_NUM_RRS; i++) { in sonic_open()
72 dma_addr_t laddr = dma_map_single(lp->device, skb_put(lp->rx_skb[i], SONIC_RBSIZE), in sonic_open()
75 while(i > 0) { /* free any that were mapped successfully */ in sonic_open()
[all …]
/linux-4.4.14/drivers/crypto/sunxi-ss/
Dsun4i-ss-hash.c51 int i; in sun4i_hash_export_md5() local
58 for (i = 0; i < 4; i++) in sun4i_hash_export_md5()
59 octx->hash[i] = op->hash[i]; in sun4i_hash_export_md5()
74 int i; in sun4i_hash_import_md5() local
83 for (i = 0; i < 4; i++) in sun4i_hash_import_md5()
84 op->hash[i] = ictx->hash[i]; in sun4i_hash_import_md5()
93 int i; in sun4i_hash_export_sha1() local
100 for (i = 0; i < 5; i++) in sun4i_hash_export_sha1()
101 octx->state[i] = op->hash[i]; in sun4i_hash_export_sha1()
117 int i; in sun4i_hash_import_sha1() local
[all …]
/linux-4.4.14/drivers/input/keyboard/
Dhil_kbd.c106 int i, idx; in hil_dev_handle_command_response() local
138 for (i = 0; i < idx; i++) in hil_dev_handle_command_response()
139 buf[i] = dev->data[i] & HIL_PKT_DATA_MASK; in hil_dev_handle_command_response()
140 for (; i < HIL_PACKET_MAX_LENGTH; i++) in hil_dev_handle_command_response()
141 buf[i] = 0; in hil_dev_handle_command_response()
150 int i; in hil_dev_handle_kbd_events() local
157 for (i = 1; i < idx - 1; i++) in hil_dev_handle_kbd_events()
158 input_report_key(dev, kbd->data[i] & 0x7f, 1); in hil_dev_handle_kbd_events()
164 for (i = 1; i < idx - 1; i++) in hil_dev_handle_kbd_events()
165 input_report_key(dev, kbd->data[i], 1); in hil_dev_handle_kbd_events()
[all …]
Dmatrix_keypad.c90 int i; in enable_row_irqs() local
95 for (i = 0; i < pdata->num_row_gpios; i++) in enable_row_irqs()
96 enable_irq(gpio_to_irq(pdata->row_gpios[i])); in enable_row_irqs()
103 int i; in disable_row_irqs() local
108 for (i = 0; i < pdata->num_row_gpios; i++) in disable_row_irqs()
109 disable_irq_nosync(gpio_to_irq(pdata->row_gpios[i])); in disable_row_irqs()
234 int i; in matrix_keypad_enable_wakeup() local
241 for (i = 0; i < pdata->num_row_gpios; i++) { in matrix_keypad_enable_wakeup()
242 if (!test_bit(i, keypad->disabled_gpios)) { in matrix_keypad_enable_wakeup()
243 gpio = pdata->row_gpios[i]; in matrix_keypad_enable_wakeup()
[all …]
/linux-4.4.14/drivers/staging/gdm72xx/
Dgdm_qos.c95 int i; in gdm_qos_init() local
97 for (i = 0; i < QOS_MAX; i++) { in gdm_qos_init()
98 INIT_LIST_HEAD(&qcb->qos_list[i]); in gdm_qos_init()
99 qcb->csr[i].qos_buf_count = 0; in gdm_qos_init()
100 qcb->csr[i].enabled = false; in gdm_qos_init()
119 int i; in gdm_qos_release_list() local
125 for (i = 0; i < QOS_MAX; i++) { in gdm_qos_release_list()
126 qcb->csr[i].qos_buf_count = 0; in gdm_qos_release_list()
127 qcb->csr[i].enabled = false; in gdm_qos_release_list()
133 for (i = 0; i < QOS_MAX; i++) { in gdm_qos_release_list()
[all …]
/linux-4.4.14/arch/arm/mach-s3c64xx/
Dirq-pm.c69 int i; in s3c64xx_irq_pm_suspend() local
75 for (i = 0; i < SERIAL_SAMSUNG_UARTS; i++) in s3c64xx_irq_pm_suspend()
76 irq_uart_mask[i] = __raw_readl(S3C_VA_UARTx(i) + S3C64XX_UINTM); in s3c64xx_irq_pm_suspend()
78 for (i = 0; i < ARRAY_SIZE(eint_grp_save); i++, grp++) { in s3c64xx_irq_pm_suspend()
79 grp->con = __raw_readl(S3C64XX_EINT12CON + (i * 4)); in s3c64xx_irq_pm_suspend()
80 grp->mask = __raw_readl(S3C64XX_EINT12MASK + (i * 4)); in s3c64xx_irq_pm_suspend()
81 grp->fltcon = __raw_readl(S3C64XX_EINT12FLTCON + (i * 4)); in s3c64xx_irq_pm_suspend()
90 int i; in s3c64xx_irq_pm_resume() local
96 for (i = 0; i < SERIAL_SAMSUNG_UARTS; i++) in s3c64xx_irq_pm_resume()
97 __raw_writel(irq_uart_mask[i], S3C_VA_UARTx(i) + S3C64XX_UINTM); in s3c64xx_irq_pm_resume()
[all …]
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_seq_pdu_list.c33 int i; in iscsit_dump_seq_list() local
39 for (i = 0; i < cmd->seq_count; i++) { in iscsit_dump_seq_list()
40 seq = &cmd->seq_list[i]; in iscsit_dump_seq_list()
43 " seq_no: %d\n", i, seq->pdu_start, seq->pdu_count, in iscsit_dump_seq_list()
51 int i; in iscsit_dump_pdu_list() local
57 for (i = 0; i < cmd->pdu_count; i++) { in iscsit_dump_pdu_list()
58 pdu = &cmd->pdu_list[i]; in iscsit_dump_pdu_list()
60 " pdu_send_order: %d, seq_no: %d\n", i, pdu->offset, in iscsit_dump_pdu_list()
73 u32 i, seq_count = 0; in iscsit_ordered_seq_lists() local
75 for (i = 0; i < cmd->seq_count; i++) { in iscsit_ordered_seq_lists()
[all …]
/linux-4.4.14/drivers/i2c/muxes/
Di2c-mux-gpio.c29 int i; in i2c_mux_gpio_set() local
31 for (i = 0; i < mux->data.n_gpios; i++) in i2c_mux_gpio_set()
32 gpio_set_value_cansleep(mux->gpio_base + mux->data.gpios[i], in i2c_mux_gpio_set()
33 val & (1 << i)); in i2c_mux_gpio_set()
68 int i = 0, ret; in i2c_mux_gpio_probe_dt() local
97 of_property_read_u32(child, "reg", values + i); in i2c_mux_gpio_probe_dt()
98 i++; in i2c_mux_gpio_probe_dt()
118 for (i = 0; i < mux->data.n_gpios; i++) { in i2c_mux_gpio_probe_dt()
119 ret = of_get_named_gpio(np, "mux-gpios", i); in i2c_mux_gpio_probe_dt()
122 gpios[i] = ret; in i2c_mux_gpio_probe_dt()
[all …]
/linux-4.4.14/drivers/mfd/
Drc5t583-irq.c213 int i; in rc5t583_irq_sync_unlock() local
216 for (i = 0; i < ARRAY_SIZE(rc5t583->gpedge_reg); i++) { in rc5t583_irq_sync_unlock()
217 ret = rc5t583_write(rc5t583->dev, gpedge_add[i], in rc5t583_irq_sync_unlock()
218 rc5t583->gpedge_reg[i]); in rc5t583_irq_sync_unlock()
222 gpedge_add[i], ret); in rc5t583_irq_sync_unlock()
225 for (i = 0; i < ARRAY_SIZE(rc5t583->irq_en_reg); i++) { in rc5t583_irq_sync_unlock()
226 ret = rc5t583_write(rc5t583->dev, irq_en_add[i], in rc5t583_irq_sync_unlock()
227 rc5t583->irq_en_reg[i]); in rc5t583_irq_sync_unlock()
231 irq_en_add[i], ret); in rc5t583_irq_sync_unlock()
258 int i; in rc5t583_irq() local
[all …]
/linux-4.4.14/drivers/media/pci/pt1/
Dpt1.c148 int i; in pt1_sync() local
149 for (i = 0; i < 57; i++) { in pt1_sync()
160 int i; in pt1_identify() local
163 for (i = 0; i < 57; i++) { in pt1_identify()
164 id |= (u64)(pt1_read_reg(pt1, 0) >> 30 & 1) << i; in pt1_identify()
172 int i; in pt1_unlock() local
174 for (i = 0; i < 3; i++) { in pt1_unlock()
185 int i; in pt1_reset_pci() local
188 for (i = 0; i < 10; i++) { in pt1_reset_pci()
199 int i; in pt1_reset_ram() local
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_sync.c44 unsigned i; in radeon_sync_create() local
46 for (i = 0; i < RADEON_NUM_SYNCS; ++i) in radeon_sync_create()
47 sync->semaphores[i] = NULL; in radeon_sync_create()
49 for (i = 0; i < RADEON_NUM_RINGS; ++i) in radeon_sync_create()
50 sync->sync_to[i] = NULL; in radeon_sync_create()
97 unsigned i; in radeon_sync_resv() local
112 for (i = 0; i < flist->shared_count; ++i) { in radeon_sync_resv()
113 f = rcu_dereference_protected(flist->shared[i], in radeon_sync_resv()
142 int i, r; in radeon_sync_rings() local
144 for (i = 0; i < RADEON_NUM_RINGS; ++i) { in radeon_sync_rings()
[all …]
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
Dchannel.c204 int i; in brcms_world_regd() local
206 for (i = 0; i < ARRAY_SIZE(cntry_locales); i++) { in brcms_world_regd()
207 if (!strncmp(regdom, cntry_locales[i].regdomain->alpha2, len)) { in brcms_world_regd()
208 regd = &cntry_locales[i]; in brcms_world_regd()
403 uint i; in brcms_c_channel_reg_limits() local
439 for (i = 0; i < BRCMS_NUM_RATES_CCK; i++) in brcms_c_channel_reg_limits()
440 txpwr->cck[i] = (u8) maxpwr; in brcms_c_channel_reg_limits()
443 for (i = 0; i < BRCMS_NUM_RATES_OFDM; i++) { in brcms_c_channel_reg_limits()
444 txpwr->ofdm[i] = (u8) maxpwr; in brcms_c_channel_reg_limits()
453 txpwr->ofdm_40_siso[i] = 0; in brcms_c_channel_reg_limits()
[all …]
/linux-4.4.14/drivers/staging/speakup/
Dkeyhelp.c66 int i, offset = 1; in build_key_data() local
74 for (i = 0; i < nstates; i++, kp++) { in build_key_data()
77 if ((state_tbl[i]&16) != 0 && *kp == SPK_KEY) in build_key_data()
82 for (i = 0; i < MAXFUNCS; i++) { in build_key_data()
83 if (counters[i] == 0) in build_key_data()
85 key_offsets[i] = offset; in build_key_data()
86 offset += (counters[i]+1); in build_key_data()
96 for (i = 0; i < nstates; i++) { in build_key_data()
100 if ((state_tbl[i]&16) != 0 && ch1 == SPK_KEY) in build_key_data()
102 key = (state_tbl[i] << 8) + ch; in build_key_data()
[all …]
/linux-4.4.14/lib/xz/
Dxz_dec_bcj.c95 size_t i; in bcj_x86() local
107 for (i = 0; i < size; ++i) { in bcj_x86()
108 if ((buf[i] & 0xFE) != 0xE8) in bcj_x86()
111 prev_pos = i - prev_pos; in bcj_x86()
117 b = buf[i + 4 - mask_to_bit_num[prev_mask]]; in bcj_x86()
120 prev_pos = i; in bcj_x86()
127 prev_pos = i; in bcj_x86()
129 if (bcj_x86_test_msbyte(buf[i + 4])) { in bcj_x86()
130 src = get_unaligned_le32(buf + i + 1); in bcj_x86()
132 dest = src - (s->pos + (uint32_t)i + 5); in bcj_x86()
[all …]
/linux-4.4.14/drivers/usb/core/
Dbuffer.c63 int i, size; in hcd_buffer_create() local
69 for (i = 0; i < HCD_BUFFER_POOLS; i++) { in hcd_buffer_create()
70 size = pool_max[i]; in hcd_buffer_create()
74 hcd->pool[i] = dma_pool_create(name, hcd->self.controller, in hcd_buffer_create()
76 if (!hcd->pool[i]) { in hcd_buffer_create()
94 int i; in hcd_buffer_destroy() local
96 for (i = 0; i < HCD_BUFFER_POOLS; i++) { in hcd_buffer_destroy()
97 struct dma_pool *pool = hcd->pool[i]; in hcd_buffer_destroy()
101 hcd->pool[i] = NULL; in hcd_buffer_destroy()
119 int i; in hcd_buffer_alloc() local
[all …]
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
Dgen-insn-attr-x86.awk111 function array_size(arr, i,c) {
113 for (i in arr)
128 for (i = 2; i <= NF; i++)
129 ref = ref $i
159 for (i = 0; i < n; i++) {
235 function convert_operands(count,opnd, i,j,imm,mod)
240 i = opnd[j]
241 if (match(i, imm_expr) == 1) {
242 if (!imm_flag[i])
245 if (i != "Ib")
[all …]
/linux-4.4.14/arch/x86/tools/
Dgen-insn-attr-x86.awk111 function array_size(arr, i,c) {
113 for (i in arr)
128 for (i = 2; i <= NF; i++)
129 ref = ref $i
159 for (i = 0; i < n; i++) {
235 function convert_operands(count,opnd, i,j,imm,mod)
240 i = opnd[j]
241 if (match(i, imm_expr) == 1) {
242 if (!imm_flag[i])
245 if (i != "Ib")
[all …]

12345678910>>...62