| /drivers/net/ethernet/huawei/hinic/ |
| A D | hinic_hw_csr.h | 21 #define HINIC_CSR_DMA_ATTR_ADDR(idx) \ argument 22 (HINIC_DMA_ATTR_BASE + (idx) * HINIC_DMA_ATTR_STRIDE) 26 #define HINIC_CSR_PPF_ELECTION_ADDR(idx) \ argument 27 (HINIC_ELECTION_BASE + (idx) * HINIC_PPF_ELECTION_STRIDE) 34 #define HINIC_CSR_API_CMD_CHAIN_HEAD_HI_ADDR(idx) \ argument 37 #define HINIC_CSR_API_CMD_CHAIN_HEAD_LO_ADDR(idx) \ argument 40 #define HINIC_CSR_API_CMD_STATUS_HI_ADDR(idx) \ argument 43 #define HINIC_CSR_API_CMD_STATUS_LO_ADDR(idx) \ argument 46 #define HINIC_CSR_API_CMD_CHAIN_NUM_CELLS_ADDR(idx) \ argument 49 #define HINIC_CSR_API_CMD_CHAIN_CTRL_ADDR(idx) \ argument [all …]
|
| /drivers/crypto/ccree/ |
| A D | cc_aead.c | 317 idx++; in hmac_setkey() 325 idx++; in hmac_setkey() 333 idx++; in hmac_setkey() 343 idx++; in hmac_setkey() 354 idx++; in hmac_setkey() 942 idx++; in cc_set_cipher_desc() 960 idx++; in cc_set_cipher_desc() 1007 idx++; in cc_set_hmac_desc() 1016 idx++; in cc_set_hmac_desc() 1037 idx++; in cc_set_xcbc_desc() [all …]
|
| A D | cc_hash.c | 359 idx++; in cc_fin_result() 380 idx++; in cc_fin_hmac() 389 idx++; in cc_fin_hmac() 400 idx++; in cc_fin_hmac() 406 idx++; in cc_fin_hmac() 413 idx++; in cc_fin_hmac() 480 idx++; in cc_hash_digest() 514 idx = cc_fin_hmac(desc, req, idx); in cc_hash_digest() 517 idx = cc_fin_result(desc, req, idx); in cc_hash_digest() 687 idx = cc_fin_hmac(desc, req, idx); in cc_do_finup() [all …]
|
| /drivers/net/ethernet/microchip/lan966x/ |
| A D | lan966x_ethtool.c | 300 uint idx = i * lan966x->num_stats; in lan966x_stats_update() local 362 u32 idx; in lan966x_get_eth_mac_stats() local 371 lan966x->stats[idx + SYS_COUNT_TX_UC] + in lan966x_get_eth_mac_stats() 372 lan966x->stats[idx + SYS_COUNT_TX_MC] + in lan966x_get_eth_mac_stats() 373 lan966x->stats[idx + SYS_COUNT_TX_BC] + in lan966x_get_eth_mac_stats() 378 lan966x->stats[idx + SYS_COUNT_TX_COL]; in lan966x_get_eth_mac_stats() 382 lan966x->stats[idx + SYS_COUNT_RX_BC]; in lan966x_get_eth_mac_stats() 400 lan966x->stats[idx + SYS_COUNT_RX_MC]; in lan966x_get_eth_mac_stats() 402 lan966x->stats[idx + SYS_COUNT_RX_BC]; in lan966x_get_eth_mac_stats() 439 u32 idx; in lan966x_get_eth_rmon_stats() local [all …]
|
| /drivers/net/ethernet/microchip/vcap/ |
| A D | vcap_api_debugfs_kunit.c | 46 for (idx = 0; idx < kslist->cnt; idx++) { in test_val_keyset() 61 for (idx = 0; idx < kslist->cnt; idx++) { in test_val_keyset() 123 for (idx = 0; idx < count; ++idx) { in test_cache_read() 127 for (idx = 0; idx < count; ++idx) { in test_cache_read() 136 for (idx = 0; idx < count; ++idx) { in test_cache_read() 164 for (idx = 0; idx < count; ++idx) { in test_cache_write() 168 for (idx = 0; idx < count; ++idx) { in test_cache_write() 177 for (idx = 0; idx < count; ++idx) { in test_cache_write() 275 for (idx = 0; idx < cnt; ++idx) { in test_prf() 421 for (idx = 0; idx < test_pr_bufferidx; ++idx) { in vcap_api_show_admin_test() [all …]
|
| /drivers/net/netdevsim/ |
| A D | macsec.c | 33 int idx; in nsim_macsec_add_secy() local 38 for (idx = 0; idx < NSIM_MACSEC_MAX_SECY_COUNT; idx++) { in nsim_macsec_add_secy() 62 int idx; in nsim_macsec_upd_secy() local 80 int idx; in nsim_macsec_del_secy() local 103 int idx; in nsim_macsec_add_rxsc() local 116 for (idx = 0; idx < NSIM_MACSEC_MAX_RXSC_COUNT; idx++) { in nsim_macsec_add_rxsc() 138 int idx; in nsim_macsec_upd_rxsc() local 165 int idx; in nsim_macsec_del_rxsc() local 196 int idx; in nsim_macsec_add_rxsa() local 223 int idx; in nsim_macsec_upd_rxsa() local [all …]
|
| /drivers/net/ethernet/microchip/sparx5/ |
| A D | sparx5_calendar.c | 212 for (idx = 0; idx < consts->n_auto_cals; idx++) in sparx5_config_auto_calendar() 224 for (idx = 2; idx < 5; idx++) in sparx5_config_auto_calendar() 291 for (idx = 0; idx < SPX5_DSM_CAL_LEN; idx++) { in sparx5_dsm_calendar_calc() 334 for (idx = 0; idx < 4; idx++) { in sparx5_dsm_calendar_calc() 385 for (idx = 0; idx < empty_slots; idx++) in sparx5_dsm_calendar_calc() 388 for (idx = 1; idx < num_of_slots; idx++) { in sparx5_dsm_calendar_calc() 484 for (idx = 0; idx < SPX5_DSM_CAL_LEN; idx++) { in sparx5_dsm_calendar_check() 489 for (idx = 0; idx < cal_length; idx++) { in sparx5_dsm_calendar_check() 498 for (idx = 0; idx < num_of_slots; idx++) { in sparx5_dsm_calendar_check() 503 for (idx = 0; idx < num_of_slots; idx++) { in sparx5_dsm_calendar_check() [all …]
|
| A D | sparx5_mirror.c | 28 val = spx5_rd(sparx5, ANA_AC_PROBE_PORT_CFG(idx)); in sparx5_mirror_port_get() 73 return sparx5_mirror_port_get(sparx5, idx) == 0; in sparx5_mirror_is_empty() 79 u32 val = spx5_rd(sparx5, ANA_AC_PROBE_CFG(idx)); in sparx5_mirror_dir_get() 89 ANA_AC_PROBE_CFG(idx)); in sparx5_mirror_dir_set() 98 QFWD_FRAME_COPY_CFG(idx + SPX5_QFWD_MP_OFFSET)); in sparx5_mirror_monitor_set() 105 QFWD_FRAME_COPY_CFG(idx + SPX5_QFWD_MP_OFFSET)); in sparx5_mirror_monitor_get() 119 struct sparx5_port *mport, u32 dir, u32 *idx) in sparx5_mirror_get() argument 135 *idx = i; in sparx5_mirror_get() 143 *idx = i; in sparx5_mirror_get() 183 entry->mirror.idx = mirror_idx; in sparx5_mirror_add() [all …]
|
| A D | sparx5_vcap_impl.c | 736 for (idx = 0; idx < size; ++idx) in sparx5_vcap_is_known_etype() 917 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_is0_cache_write() 926 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is0_cache_write() 958 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_is2_cache_write() 967 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is2_cache_write() 1027 for (idx = 0; idx < count; ++idx) in sparx5_vcap_es0_cache_write() 1068 for (idx = 0; idx < count; ++idx) in sparx5_vcap_es2_cache_write() 1138 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is0_cache_read() 1173 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is2_cache_read() 1228 for (idx = 0; idx < count; ++idx) in sparx5_vcap_es0_cache_read() [all …]
|
| /drivers/net/can/sja1000/ |
| A D | sja1000_isa.c | 126 idx, port[idx], mem[idx], irq[idx]); in sja1000_isa_probe() 176 if (clk[idx]) in sja1000_isa_probe() 215 if (mem[idx]) in sja1000_isa_probe() 218 if (mem[idx]) in sja1000_isa_probe() 256 int idx, err; in sja1000_isa_init() local 258 for (idx = 0; idx < MAXDEV; idx++) { in sja1000_isa_init() 259 if ((port[idx] || mem[idx]) && irq[idx]) { in sja1000_isa_init() 273 DRV_NAME, idx, port[idx], mem[idx], irq[idx]); in sja1000_isa_init() 274 } else if (idx == 0 || port[idx] || mem[idx]) { in sja1000_isa_init() 302 int idx; in sja1000_isa_exit() local [all …]
|
| /drivers/net/can/cc770/ |
| A D | cc770_isa.c | 172 idx, port[idx], mem[idx], irq[idx]); in cc770_isa_probe() 220 if (clk[idx]) in cc770_isa_probe() 277 if (mem[idx]) in cc770_isa_probe() 280 if (mem[idx]) in cc770_isa_probe() 318 int idx, err; in cc770_isa_init() local 320 for (idx = 0; idx < ARRAY_SIZE(cc770_isa_devs); idx++) { in cc770_isa_init() 321 if ((port[idx] || mem[idx]) && irq[idx]) { in cc770_isa_init() 335 idx, port[idx], mem[idx], irq[idx]); in cc770_isa_init() 336 } else if (idx == 0 || port[idx] || mem[idx]) { in cc770_isa_init() 363 int idx; in cc770_isa_exit() local [all …]
|
| /drivers/gpu/drm/radeon/ |
| A D | evergreen_cs.c | 1075 unsigned idx; in evergreen_cs_parse_packet0() local 1078 idx = pkt->idx + 1; in evergreen_cs_parse_packet0() 1787 idx = pkt->idx + 1; in evergreen_packet3_check() 2106 ib[idx+1] = (ib[idx+1] & 0x3) | (offset & 0xfffffffc); in evergreen_packet3_check() 2893 u32 idx; in evergreen_dma_cs_parse() local 2903 idx = p->idx; in evergreen_dma_cs_parse() 3441 u32 idx = pkt->idx + 1; in evergreen_vm_packet3_check() local 3623 pkt.idx = idx; in evergreen_ib_parse() 3633 idx += 1; in evergreen_ib_parse() 3740 idx += 4; in evergreen_dma_ib_parse() [all …]
|
| A D | r600_cs.c | 927 idx, reg); in r600_packet0_check() 942 unsigned idx; in r600_cs_parse_packet0() local 945 idx = pkt->idx + 1; in r600_cs_parse_packet0() 1313 ib[idx] |= 3; in r600_cs_check_reg() 1632 unsigned idx; in r600_packet3_check() local 1640 idx = pkt->idx + 1; in r600_packet3_check() 1770 ib[idx+1] = (ib[idx+1] & 0x3) | (offset & 0xfffffff0); in r600_packet3_check() 2011 ib[idx+1+(i*8)+2] = (ib[idx+1+(i*8)+2] & 0xffffff00) | in r600_packet3_check() 2345 unsigned idx; in r600_dma_cs_next_reloc() local 2392 idx = p->idx; in r600_dma_cs_parse() [all …]
|
| /drivers/clk/uniphier/ |
| A D | clk-uniphier-sys.c | 27 #define UNIPHIER_LD4_SYS_CLK_NAND(idx) \ argument 31 #define UNIPHIER_PRO5_SYS_CLK_NAND(idx) \ argument 35 #define UNIPHIER_LD11_SYS_CLK_NAND(idx) \ argument 39 #define UNIPHIER_SYS_CLK_NAND_4X(idx) \ argument 42 #define UNIPHIER_LD11_SYS_CLK_EMMC(idx) \ argument 45 #define UNIPHIER_LD4_SYS_CLK_STDMAC(idx) \ argument 51 #define UNIPHIER_LD11_SYS_CLK_HSC(idx) \ argument 54 #define UNIPHIER_PRO4_SYS_CLK_GIO(idx) \ argument 60 #define UNIPHIER_PRO4_SYS_CLK_AIO(idx) \ argument 64 #define UNIPHIER_PRO5_SYS_CLK_AIO(idx) \ argument [all …]
|
| /drivers/net/ethernet/ti/ |
| A D | cpsw_ale.c | 141 idx = 2 - idx; /* flip */ in cpsw_ale_get_field() 160 idx = 2 - idx; /* flip */ in cpsw_ale_set_field() 383 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_match_addr() 404 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_match_vlan() 420 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_match_free() 434 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_find_ageable() 473 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_flush_multicast() 518 int idx; in cpsw_ale_add_ucast() local 544 int idx; in cpsw_ale_del_ucast() local 823 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_set_unreg_mcast() [all …]
|
| /drivers/gpu/drm/i915/display/ |
| A D | intel_display_power_map.c | 111 .hsw.idx = HSW_PW_CTL_IDX_GLOBAL, 145 .hsw.idx = HSW_PW_CTL_IDX_GLOBAL, 204 .vlv.idx = PUNIT_PWGT_IDX_DISP2D, 361 .hsw.idx = SKL_PW_CTL_IDX_PW_1, 389 .hsw.idx = SKL_PW_CTL_IDX_PW_2, 468 .hsw.idx = SKL_PW_CTL_IDX_PW_2, 571 .hsw.idx = SKL_PW_CTL_IDX_PW_2, 720 .hsw.idx = ICL_PW_CTL_IDX_PW_1, 739 .hsw.idx = ICL_PW_CTL_IDX_PW_2, 747 .hsw.idx = ICL_PW_CTL_IDX_PW_3, [all …]
|
| /drivers/net/ethernet/chelsio/cxgb/ |
| A D | fpga_defs.h | 215 #define MAC_REG_ADDR(idx, reg) (MAC_REG_BASE + (idx) * 128 + (reg)) argument 217 #define MAC_REG_IDLO(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_LO) argument 218 #define MAC_REG_IDHI(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_HI) argument 219 #define MAC_REG_CSR(idx) MAC_REG_ADDR(idx, A_GMAC_CSR) argument 220 #define MAC_REG_IFS(idx) MAC_REG_ADDR(idx, A_GMAC_IFS) argument 222 #define MAC_REG_LINKDLY(idx) MAC_REG_ADDR(idx, A_GMAC_LNK_DLY) argument 223 #define MAC_REG_PAUSETIME(idx) MAC_REG_ADDR(idx, A_GMAC_PAUSETIME) argument 224 #define MAC_REG_CASTLO(idx) MAC_REG_ADDR(idx, A_GMAC_MCAST_LO) argument 225 #define MAC_REG_MCASTHI(idx) MAC_REG_ADDR(idx, A_GMAC_MCAST_HI) argument 228 #define MAC_REG_RMCNT(idx) MAC_REG_ADDR(idx, A_GMAC_RMT_CNT) argument [all …]
|
| /drivers/input/misc/ |
| A D | ad714x.c | 389 idx); in ad714x_slider_state_machine() 563 idx); in ad714x_wheel_state_machine() 678 idx, sw->x_flt_pos, sw->y_flt_pos); in touchpad_cal_flt_pos() 813 touchpad_use_com_int(ad714x, idx); in ad714x_touchpad_state_machine() 820 touchpad_cal_sensor_val(ad714x, idx); in ad714x_touchpad_state_machine() 826 idx); in ad714x_touchpad_state_machine() 827 touchpad_cal_abs_pos(ad714x, idx); in ad714x_touchpad_state_machine() 842 touchpad_cal_abs_pos(ad714x, idx); in ad714x_touchpad_state_machine() 843 touchpad_cal_flt_pos(ad714x, idx); in ad714x_touchpad_state_machine() 855 touchpad_use_thr_int(ad714x, idx); in ad714x_touchpad_state_machine() [all …]
|
| /drivers/media/usb/pvrusb2/ |
| A D | pvrusb2-encoder.c | 51 for (idx = 0; idx < chunkCnt; idx++) { in pvr2_encoder_write_words() 110 for (idx = 0; idx < chunkCnt; idx++) { in pvr2_encoder_read_words() 111 data[idx] = PVR2_COMPOSE_LE(hdw->cmd_buffer,idx*4); in pvr2_encoder_read_words() 205 for (idx = 0; idx < arg_cnt_send; idx++) { in pvr2_encoder_cmd() 206 wrData[idx+4] = argp[idx]; in pvr2_encoder_cmd() 208 for (; idx < ARRAY_SIZE(wrData) - 4; idx++) { in pvr2_encoder_cmd() 243 for (idx = 4; idx < arg_cnt_send; idx++) { in pvr2_encoder_cmd() 247 idx-3,wrData[idx]); in pvr2_encoder_cmd() 280 for (idx = 0; idx < arg_cnt_recv; idx++) { in pvr2_encoder_cmd() 281 argp[idx] = rdData[idx+4]; in pvr2_encoder_cmd() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| A D | gk104.c | 145 read_clk(struct gk104_clk *clk, int idx) in read_clk() argument 151 if (idx < 7) { in read_clk() 153 if (ssel & (1 << idx)) { in read_clk() 256 sclk = read_vco(clk, 0x137160 + (idx * 4)); in calc_src() 257 if (idx < 7) in calc_src() 258 sclk = calc_div(clk, idx, sclk, freq, ddiv); in calc_src() 290 struct gk104_clk_info *info = &clk->eng[idx]; in calc_clk() 305 if (idx <= 7) in calc_clk() 330 info->ssel = (1 << idx); in calc_clk() 359 struct gk104_clk_info *info = &clk->eng[idx]; in gk104_clk_prog_0() [all …]
|
| /drivers/net/wireless/mediatek/mt7601u/ |
| A D | main.c | 57 mvif->idx = idx; in mt7601u_add_interface() 193 if (!idx) in mt76_wcid_alloc() 196 idx--; in mt76_wcid_alloc() 201 idx = i * BITS_PER_LONG + idx; in mt76_wcid_alloc() 205 return idx; in mt76_wcid_alloc() 216 int idx = 0; in mt7601u_sta_add() local 226 msta->wcid.idx = idx; in mt7601u_sta_add() 228 mt7601u_mac_wcid_setup(dev, idx, mvif->idx, sta->addr); in mt7601u_sta_add() 245 int idx = msta->wcid.idx; in mt7601u_sta_remove() local 249 mt76_set(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx)); in mt7601u_sta_remove() [all …]
|
| /drivers/clk/baikal-t1/ |
| A D | clk-ccu-pll.c | 89 int idx; in ccu_pll_find_desc() local 91 for (idx = 0; idx < CCU_PLL_NUM; ++idx) { in ccu_pll_find_desc() 92 if (pll_info[idx].id == clk_id) in ccu_pll_find_desc() 93 return data->plls[idx]; in ccu_pll_find_desc() 150 int idx, ret; in ccu_pll_clk_register() local 152 for (idx = 0; idx < CCU_PLL_NUM; ++idx) { in ccu_pll_clk_register() 158 if (!data->plls[idx]) in ccu_pll_clk_register() 174 if (IS_ERR(data->plls[idx])) { in ccu_pll_clk_register() 185 for (--idx; idx >= 0; --idx) { in ccu_pll_clk_register() 197 int idx; in ccu_pll_clk_unregister() local [all …]
|
| /drivers/cpuidle/governors/ |
| A D | teo.c | 301 idx = 0; in teo_select() 306 idx = 0; in teo_select() 323 if (idx < 0) in teo_select() 326 idx = i; in teo_select() 337 if (idx < 0) { in teo_select() 384 idx = i; in teo_select() 454 if (!idx) in teo_select() 464 idx = i; in teo_select() 484 return idx; in teo_select() 491 if (idx > idx0 && in teo_select() [all …]
|
| /drivers/media/dvb-core/ |
| A D | dvb_ringbuffer.c | 264 idx = (idx + DVB_RINGBUFFER_PKTHDRSIZE + offset) % rbuf->size; in dvb_ringbuffer_pkt_read_user() 266 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; in dvb_ringbuffer_pkt_read_user() 272 idx = 0; in dvb_ringbuffer_pkt_read_user() 292 idx = (idx + DVB_RINGBUFFER_PKTHDRSIZE + offset) % rbuf->size; in dvb_ringbuffer_pkt_read() 294 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; in dvb_ringbuffer_pkt_read() 299 idx = 0; in dvb_ringbuffer_pkt_read() 330 if (idx == -1) { in dvb_ringbuffer_pkt_next() 331 idx = rbuf->pread; in dvb_ringbuffer_pkt_next() 335 idx = (idx + curpktlen + DVB_RINGBUFFER_PKTHDRSIZE) % rbuf->size; in dvb_ringbuffer_pkt_next() 350 return idx; in dvb_ringbuffer_pkt_next() [all …]
|
| /drivers/net/ethernet/meta/fbnic/ |
| A D | fbnic_rpc.c | 508 int idx; in fbnic_clear_macda() local 510 for (idx = ARRAY_SIZE(fbd->mac_addr); idx--;) { in fbnic_clear_macda() 559 int idx; in fbnic_write_macda() local 561 for (idx = ARRAY_SIZE(fbd->mac_addr); idx--;) { in fbnic_write_macda() 877 unsigned int idx) in fbnic_clear_ip_outer_src_entry() argument 887 unsigned int idx) in fbnic_clear_ip_outer_dst_entry() argument 976 int idx; in fbnic_write_ip_addr() local 978 for (idx = ARRAY_SIZE(fbd->ip_src); idx--;) { in fbnic_write_ip_addr() 1000 for (idx = ARRAY_SIZE(fbd->ip_dst); idx--;) { in fbnic_write_ip_addr() 1018 for (idx = ARRAY_SIZE(fbd->ipo_src); idx--;) { in fbnic_write_ip_addr() [all …]
|