Home
last modified time | relevance | path

Searched refs:ii (Results 1 – 25 of 59) sorted by relevance

123

/drivers/staging/vt6655/
Dbaseband.c1993 int ii; in bb_vt3253_init() local
2000 for (ii = 0; ii < CB_VT3253_INIT_FOR_RFMD; ii++) in bb_vt3253_init()
2002 by_vt3253_init_tab_rfmd[ii][0], in bb_vt3253_init()
2003 by_vt3253_init_tab_rfmd[ii][1]); in bb_vt3253_init()
2006 for (ii = 0; ii < CB_VT3253B0_INIT_FOR_RFMD; ii++) in bb_vt3253_init()
2008 vt3253b0_rfmd[ii][0], in bb_vt3253_init()
2009 vt3253b0_rfmd[ii][1]); in bb_vt3253_init()
2011 for (ii = 0; ii < CB_VT3253B0_AGC_FOR_RFMD2959; ii++) in bb_vt3253_init()
2013 byVT3253B0_AGC4_RFMD2959[ii][0], in bb_vt3253_init()
2014 byVT3253B0_AGC4_RFMD2959[ii][1]); in bb_vt3253_init()
[all …]
Dsrom.c108 int ii; in SROMvReadAllContents() local
111 for (ii = 0; ii < EEP_MAX_CONTEXT_SIZE; ii++) { in SROMvReadAllContents()
113 (unsigned char)ii); in SROMvReadAllContents()
133 unsigned char ii; in SROMvReadEtherAddress() local
136 for (ii = 0; ii < ETH_ALEN; ii++) { in SROMvReadEtherAddress()
137 *pbyEtherAddress = SROMbyReadEmbedded(iobase, ii); in SROMvReadEtherAddress()
Ddpc.c34 int ii, r; in vnt_rx_data() local
61 for (ii = 0; ii < sband->n_bitrates; ii++) { in vnt_rx_data()
62 if (sband->bitrates[ii].hw_value == r) { in vnt_rx_data()
63 rate_idx = ii; in vnt_rx_data()
68 if (ii == sband->n_bitrates) { in vnt_rx_data()
Dcard.c654 unsigned char ii; in CARDvUpdateBasicTopRate() local
657 for (ii = RATE_54M; ii >= RATE_6M; ii--) { in CARDvUpdateBasicTopRate()
658 if ((priv->basic_rates) & ((u32)(1 << ii))) { in CARDvUpdateBasicTopRate()
659 byTopOFDM = ii; in CARDvUpdateBasicTopRate()
665 for (ii = RATE_11M;; ii--) { in CARDvUpdateBasicTopRate()
666 if ((priv->basic_rates) & ((u32)(1 << ii))) { in CARDvUpdateBasicTopRate()
667 byTopCCK = ii; in CARDvUpdateBasicTopRate()
670 if (ii == RATE_1M) in CARDvUpdateBasicTopRate()
678 int ii; in CARDbIsOFDMinBasicRate() local
680 for (ii = RATE_54M; ii >= RATE_6M; ii--) { in CARDbIsOFDMinBasicRate()
[all …]
Dmac.c680 unsigned int uu, ii; in MACvTimer0MicroSDelay() local
685 for (ii = 0; ii < 66; ii++) { /* assume max PCI clock is 66Mhz */ in MACvTimer0MicroSDelay()
780 int ii; in MACvSetKeyEntry() local
816 for (ii = 0; ii < 4; ii++) { in MACvSetKeyEntry()
819 ii, offset + ii, *pdwKey); in MACvSetKeyEntry()
820 iowrite16(offset + ii, io_base + MAC_REG_MISCFFNDEX); in MACvSetKeyEntry()
Ddevice_main.c264 unsigned int ii; in device_init_registers() local
368 for (ii = 0; ii < CB_MAX_CHANNEL_24G; ii++) { in device_init_registers()
369 priv->abyCCKPwrTbl[ii + 1] = in device_init_registers()
371 (unsigned char)(ii + EEP_OFS_CCK_PWR_TBL)); in device_init_registers()
372 if (priv->abyCCKPwrTbl[ii + 1] == 0) in device_init_registers()
373 priv->abyCCKPwrTbl[ii + 1] = priv->byCCKPwr; in device_init_registers()
375 priv->abyOFDMPwrTbl[ii + 1] = in device_init_registers()
377 (unsigned char)(ii + EEP_OFS_OFDM_PWR_TBL)); in device_init_registers()
378 if (priv->abyOFDMPwrTbl[ii + 1] == 0) in device_init_registers()
379 priv->abyOFDMPwrTbl[ii + 1] = priv->byOFDMPwrG; in device_init_registers()
[all …]
/drivers/net/wireless/rsi/
Drsi_91x_core.c33 u8 ii = 0; in rsi_determine_min_weight_queue() local
35 for (ii = 0; ii < NUM_EDCA_QUEUES; ii++) { in rsi_determine_min_weight_queue()
36 q_len = skb_queue_len(&common->tx_queue[ii]); in rsi_determine_min_weight_queue()
37 if ((tx_qinfo[ii].pkt_contended) && q_len) { in rsi_determine_min_weight_queue()
38 common->min_weight = tx_qinfo[ii].weight; in rsi_determine_min_weight_queue()
42 return ii; in rsi_determine_min_weight_queue()
56 u8 ii = 0; in rsi_recalculate_weights() local
59 for (ii = 0; ii < NUM_EDCA_QUEUES; ii++) { in rsi_recalculate_weights()
60 q_len = skb_queue_len(&common->tx_queue[ii]); in rsi_recalculate_weights()
63 if (tx_qinfo[ii].pkt_contended) { in rsi_recalculate_weights()
[all …]
Drsi_91x_mgmt.c322 u8 ii = 0; in rsi_set_contention_vals() local
324 for (; ii < NUM_EDCA_QUEUES; ii++) { in rsi_set_contention_vals()
325 common->tx_qinfo[ii].wme_params = in rsi_set_contention_vals()
326 (((common->edca_params[ii].cw_min / 2) + in rsi_set_contention_vals()
327 (common->edca_params[ii].aifs)) * in rsi_set_contention_vals()
329 common->tx_qinfo[ii].weight = common->tx_qinfo[ii].wme_params; in rsi_set_contention_vals()
330 common->tx_qinfo[ii].pkt_contended = 0; in rsi_set_contention_vals()
375 u8 ii; in rsi_load_radio_caps() local
438 for (ii = 0; ii < MAX_HW_QUEUES; ii++) { in rsi_load_radio_caps()
439 radio_caps->qos_params[ii].cont_win_min_q = cpu_to_le16(3); in rsi_load_radio_caps()
[all …]
Drsi_91x_main.c305 u8 ii = 0; in rsi_91x_init() local
322 for (ii = 0; ii < NUM_SOFT_QUEUES; ii++) in rsi_91x_init()
323 skb_queue_head_init(&common->tx_queue[ii]); in rsi_91x_init()
401 u8 ii; in rsi_91x_deinit() local
407 for (ii = 0; ii < NUM_SOFT_QUEUES; ii++) in rsi_91x_deinit()
408 skb_queue_purge(&common->tx_queue[ii]); in rsi_91x_deinit()
Drsi_91x_debugfs.c285 int ii; in rsi_init_dbgfs() local
299 for (ii = 0; ii < adapter->num_debugfs_entries; ii++) { in rsi_init_dbgfs()
300 files = &dev_debugfs_files[ii]; in rsi_init_dbgfs()
301 dev_dbgfs->rsi_files[ii] = in rsi_init_dbgfs()
/drivers/staging/vt6656/
Dmain_usb.c104 int ii; in vnt_download_firmware() local
116 for (ii = 0; ii < fw->size; ii += FIRMWARE_CHUNK_SIZE) { in vnt_download_firmware()
117 length = min_t(int, fw->size - ii, FIRMWARE_CHUNK_SIZE); in vnt_download_firmware()
119 ret = vnt_control_out(priv, 0, 0x1200 + ii, 0x0000, length, in vnt_download_firmware()
120 fw->data + ii); in vnt_download_firmware()
124 dev_dbg(dev, "Download firmware...%d %zu\n", ii, fw->size); in vnt_download_firmware()
186 int ii; in vnt_init_registers() local
218 for (ii = 0; ii < ARRAY_SIZE(init_cmd->sw_net_addr); ii++) in vnt_init_registers()
219 init_cmd->sw_net_addr[ii] = priv->current_net_addr[ii]; in vnt_init_registers()
257 for (ii = 0; ii < ARRAY_SIZE(priv->cck_pwr_tbl); ii++) { in vnt_init_registers()
[all …]
Dusbpipe.c272 int ii; in vnt_rx_data() local
313 for (ii = 0; ii < sband->n_bitrates; ii++) { in vnt_rx_data()
314 if (sband->bitrates[ii].bitrate == rx_bitrate) { in vnt_rx_data()
315 rate_idx = ii; in vnt_rx_data()
320 if (ii == sband->n_bitrates) { in vnt_rx_data()
/drivers/w1/slaves/
Dw1_ds2423.c41 int ii; in w1_slave_show() local
64 for (ii = 0; ii < READ_BYTE_COUNT; ++ii) in w1_slave_show()
67 rbuf[(p * READ_BYTE_COUNT) + ii]); in w1_slave_show()
92 for (ii = 4; ii > 0; ii--) { in w1_slave_show()
95 READ_BYTE_COUNT) + ii]; in w1_slave_show()
/drivers/scsi/csiostor/
Dcsio_init.c698 int cur_cnt = 0, ii; in csio_lnodes_block_request() local
719 for (ii = 0; ii < cur_cnt; ii++) { in csio_lnodes_block_request()
720 csio_dbg(hw, "Blocking IOs on lnode: %p\n", lnode_list[ii]); in csio_lnodes_block_request()
721 ln = lnode_list[ii]; in csio_lnodes_block_request()
737 int cur_cnt = 0, ii; in csio_lnodes_unblock_request() local
758 for (ii = 0; ii < cur_cnt; ii++) { in csio_lnodes_unblock_request()
759 csio_dbg(hw, "unblocking IOs on lnode: %p\n", lnode_list[ii]); in csio_lnodes_unblock_request()
760 ln = lnode_list[ii]; in csio_lnodes_unblock_request()
775 int cur_cnt = 0, ii; in csio_lnodes_block_by_port() local
799 for (ii = 0; ii < cur_cnt; ii++) { in csio_lnodes_block_by_port()
[all …]
/drivers/message/fusion/
Dmptfc.c291 int ii; in mptfc_GetFcDevPage0() local
383 for (ii = 0; ii < num_targ; ii++) { in mptfc_GetFcDevPage0()
384 fc = *(pp0_array+ii); in mptfc_GetFcDevPage0()
946 int ii; in mptfc_SetFcPortPage1_defaults() local
954 for (ii=0; ii<ioc->facts.NumberOfPorts; ii++) { in mptfc_SetFcPortPage1_defaults()
955 if (mptfc_GetFcPortPage1(ioc, ii) != 0) in mptfc_SetFcPortPage1_defaults()
957 pp1 = ioc->fc_data.fc_port_page1[ii].data; in mptfc_SetFcPortPage1_defaults()
967 mptfc_WriteFcPortPage1(ioc, ii); in mptfc_SetFcPortPage1_defaults()
1071 int ii; in mptfc_link_status_change() local
1073 for (ii=0; ii < ioc->facts.NumberOfPorts; ii++) in mptfc_link_status_change()
[all …]
Dmptspi.c262 int ii; in mptspi_writeIOCPage4() local
286 for (ii=0; ii < 8; ii++) { in mptspi_writeIOCPage4()
287 pReq->Reserved2[ii] = 0; in mptspi_writeIOCPage4()
292 ii = IOCPage4Ptr->ActiveSEP++; in mptspi_writeIOCPage4()
293 IOCPage4Ptr->SEP[ii].SEPTargetID = id; in mptspi_writeIOCPage4()
294 IOCPage4Ptr->SEP[ii].SEPBus = channel; in mptspi_writeIOCPage4()
301 (IOCPage4Ptr->Header.PageLength + ii) * 4; in mptspi_writeIOCPage4()
471 mptspi_print_write_nego(struct _MPT_SCSI_HOST *hd, struct scsi_target *starget, u32 ii) in mptspi_print_write_nego() argument
475 hd->ioc->name, starget->id, ii, in mptspi_print_write_nego()
476 ii & MPI_SCSIDEVPAGE0_NP_WIDE ? "Wide ": "", in mptspi_print_write_nego()
[all …]
Dmptdebug.h165 int ii, n; in DBG_DUMP_PUT_MSG_FRAME() local
174 for (ii=0; ii<=n; ii++) { in DBG_DUMP_PUT_MSG_FRAME()
175 if (ii && ((ii%8)==0)) in DBG_DUMP_PUT_MSG_FRAME()
177 printk(" %08x", le32_to_cpu(mfp[ii])); in DBG_DUMP_PUT_MSG_FRAME()
Dmptbase.c1184 int ii; in mpt_send_handshake_request() local
1196 ii = MFPTR_2_MPT_INDEX(ioc,(MPT_FRAME_HDR*)req); in mpt_send_handshake_request()
1197 if (reqBytes >= 12 && ii >= 0 && ii < ioc->req_depth) { in mpt_send_handshake_request()
1199 mf->u.frame.hwhdr.msgctxu.fld.req_idx = cpu_to_le16(ii); in mpt_send_handshake_request()
1211 if ((ii = WaitForDoorbellInt(ioc, 5, sleepFlag)) < 0) { in mpt_send_handshake_request()
1212 return ii; in mpt_send_handshake_request()
1220 ioc->name, ii)); in mpt_send_handshake_request()
1230 for (ii = 0; ii < reqBytes/4; ii++) { in mpt_send_handshake_request()
1233 word = ((req_as_bytes[(ii*4) + 0] << 0) | in mpt_send_handshake_request()
1234 (req_as_bytes[(ii*4) + 1] << 8) | in mpt_send_handshake_request()
[all …]
Dmptscsih.c191 int ii; in mptscsih_AddSGE() local
235 for (ii=0; ii < (numSgeThisFrame-1); ii++) { in mptscsih_AddSGE()
1035 int ii; in mptscsih_flush_running_cmds() local
1038 for (ii= 0; ii < ioc->req_depth; ii++) { in mptscsih_flush_running_cmds()
1039 sc = mptscsih_getclear_scsi_lookup(ioc, ii); in mptscsih_flush_running_cmds()
1042 mf = (SCSIIORequest_t *)MPT_INDEX_2_MFPTR(ioc, ii); in mptscsih_flush_running_cmds()
1047 mptscsih_freeChainBuffers(ioc, ii); in mptscsih_flush_running_cmds()
1056 "idx=%x\n", ioc->name, channel, id, sc, mf, ii)); in mptscsih_flush_running_cmds()
1080 int ii; in mptscsih_search_running_cmds() local
1087 for (ii = 0; ii < ioc->req_depth; ii++) { in mptscsih_search_running_cmds()
[all …]
/drivers/hid/
Dhid-magicmouse.c153 int ii; in magicmouse_firm_touch() local
158 for (ii = 0; ii < msc->ntouches; ii++) { in magicmouse_firm_touch()
159 int idx = msc->tracking_ids[ii]; in magicmouse_firm_touch()
378 int x = 0, y = 0, ii, clicks = 0, npoints; in magicmouse_raw_event() local
393 for (ii = 0; ii < npoints; ii++) in magicmouse_raw_event()
394 magicmouse_emit_touch(msc, ii, data + ii * 9 + 4); in magicmouse_raw_event()
415 for (ii = 0; ii < npoints; ii++) in magicmouse_raw_event()
416 magicmouse_emit_touch(msc, ii, data + ii * 9 + 12); in magicmouse_raw_event()
431 for (ii = 0; ii < npoints; ii++) in magicmouse_raw_event()
432 magicmouse_emit_touch(msc, ii, data + ii * 8 + 6); in magicmouse_raw_event()
[all …]
/drivers/i2c/busses/
Di2c-iop3xx.c306 int ii; in iop3xx_i2c_writebytes() local
309 for (ii = 0; rc == 0 && ii != count; ++ii) in iop3xx_i2c_writebytes()
310 rc = iop3xx_i2c_write_byte(iop3xx_adap, buf[ii], ii == count-1); in iop3xx_i2c_writebytes()
318 int ii; in iop3xx_i2c_readbytes() local
321 for (ii = 0; rc == 0 && ii != count; ++ii) in iop3xx_i2c_readbytes()
322 rc = iop3xx_i2c_read_byte(iop3xx_adap, &buf[ii], ii == count-1); in iop3xx_i2c_readbytes()
/drivers/phy/broadcom/
Dphy-brcm-usb-init.c546 int ii; in brcmusb_usb3_enable_sigdet() local
549 for (ii = 0; ii < PHY_PORTS; ++ii) { in brcmusb_usb3_enable_sigdet()
563 int ii; in brcmusb_usb3_enable_skip_align() local
566 for (ii = 0; ii < PHY_PORTS; ++ii) { in brcmusb_usb3_enable_skip_align()
579 int ii; in brcmusb_usb3_unfreeze_aeq() local
582 for (ii = 0; ii < PHY_PORTS; ++ii) { in brcmusb_usb3_unfreeze_aeq()
596 int ii; in brcmusb_usb3_pll_54mhz() local
642 for (ii = 0; ii < PHY_PORTS; ++ii) { in brcmusb_usb3_pll_54mhz()
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_dcb.c94 int i, ii; in sparx5_dcb_apptrust_validate() local
100 for (ii = 0; ii < nselectors; ii++) { in sparx5_dcb_apptrust_validate()
101 if (sparx5_dcb_apptrust_policies[i].selectors[ii] != in sparx5_dcb_apptrust_validate()
102 *(selectors + ii)) { in sparx5_dcb_apptrust_validate()
/drivers/isdn/mISDN/
Ddsp_cmx.c377 int memb = 0, i, ii, i1, i2; in dsp_cmx_hardware() local
462 ii = dsp->features.pcm_slots; in dsp_cmx_hardware()
463 while (i < ii) { in dsp_cmx_hardware()
468 if (i == ii) { in dsp_cmx_hardware()
756 ii = member->dsp->features.pcm_slots; in dsp_cmx_hardware()
757 while (i < ii) { in dsp_cmx_hardware()
762 if (i == ii) { in dsp_cmx_hardware()
848 ii = member->dsp->features.pcm_slots; in dsp_cmx_hardware()
849 while (i1 < ii) { in dsp_cmx_hardware()
854 if (i1 == ii) { in dsp_cmx_hardware()
[all …]
Dl1oip_codec.c216 int ii, i = 0, o = 0; in l1oip_law_to_4bit() local
228 ii = len >> 1; in l1oip_law_to_4bit()
230 while (i < ii) { in l1oip_law_to_4bit()

123