/linux/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) 27 #define HINIC_CSR_PPF_ELECTION_ADDR(idx) \ argument 28 (HINIC_ELECTION_BASE + (idx) * HINIC_PPF_ELECTION_STRIDE) 35 #define HINIC_CSR_API_CMD_CHAIN_HEAD_HI_ADDR(idx) \ argument 38 #define HINIC_CSR_API_CMD_CHAIN_HEAD_LO_ADDR(idx) \ argument 41 #define HINIC_CSR_API_CMD_STATUS_HI_ADDR(idx) \ argument 44 #define HINIC_CSR_API_CMD_STATUS_LO_ADDR(idx) \ argument 47 #define HINIC_CSR_API_CMD_CHAIN_NUM_CELLS_ADDR(idx) \ argument 50 #define HINIC_CSR_API_CMD_CHAIN_CTRL_ADDR(idx) \ argument [all …]
|
/linux/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 …]
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_calendar.c | 216 for (idx = 0; idx < ARRAY_SIZE(cal); idx++) in sparx5_config_auto_calendar() 228 for (idx = 2; idx < 5; idx++) in sparx5_config_auto_calendar() 295 for (idx = 0; idx < SPX5_DSM_CAL_LEN; idx++) { in sparx5_dsm_calendar_calc() 338 for (idx = 0; idx < 4; idx++) { in sparx5_dsm_calendar_calc() 389 for (idx = 0; idx < empty_slots; idx++) in sparx5_dsm_calendar_calc() 392 for (idx = 1; idx < num_of_slots; idx++) { in sparx5_dsm_calendar_calc() 488 for (idx = 0; idx < SPX5_DSM_CAL_LEN; idx++) { in sparx5_dsm_calendar_check() 493 for (idx = 0; idx < cal_length; idx++) { in sparx5_dsm_calendar_check() 502 for (idx = 0; idx < num_of_slots; idx++) { in sparx5_dsm_calendar_check() 507 for (idx = 0; idx < num_of_slots; idx++) { in sparx5_dsm_calendar_check() [all …]
|
A D | sparx5_main.c | 228 for (idx = 0; idx < IO_RANGES; idx++) { in sparx5_create_targets() 243 begin[idx] = iomem[idx] - sparx5_main_iomap[range_id[idx]].offset; in sparx5_create_targets() 328 for (idx = 0; idx < ARRAY_SIZE(spx5_ram_cfg); idx++) { in sparx5_init_ram() 495 for (idx = 0; idx < 3; idx++) in sparx5_init_coreclock() 555 for (idx = 0; idx < SPX5_PORTS; idx++) in sparx5_board_init() 571 for (idx = 0; idx < 3; idx++) { in sparx5_start() 572 spx5_wr(idx, sparx5, ANA_AC_OWN_UPSID(idx)); in sparx5_start() 575 spx5_wr(idx, sparx5, REW_OWN_UPSID(idx)); in sparx5_start() 579 for (idx = SPX5_PORTS; idx < SPX5_PORTS_ALL; idx++) in sparx5_start() 595 for (idx = SPX5_PORT_CPU_0; idx <= SPX5_PORT_CPU_1; idx++) in sparx5_start() [all …]
|
/linux/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() 213 if (mem[idx]) in sja1000_isa_probe() 216 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 …]
|
/linux/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() 275 if (mem[idx]) in cc770_isa_probe() 278 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 …]
|
/linux/tools/testing/selftests/kvm/lib/ |
A D | sparsebit.c | 287 root->idx = subtree->idx; in node_copy_subtree() 317 if (idx >= nodep->idx && in node_find() 358 if (idx < parentp->idx) { in node_add() 518 if (nodep1->idx == idx) in node_split() 786 if (idx >= nodep->idx && in sparsebit_is_set() 798 assert(idx >= nodep->idx && idx - nodep->idx < MASK_BITS); in sparsebit_is_set() 821 assert(idx >= nodep->idx && idx <= nodep->idx + MASK_BITS - 1); in bit_set() 856 assert(idx >= nodep->idx && idx <= nodep->idx + MASK_BITS - 1); in bit_clear() 1268 for (idx = lowest_possible - nodep1->idx; idx < MASK_BITS; idx++) in sparsebit_next_clear() 1312 idx != 0 && idx + num - 1 >= idx; in sparsebit_next_set_num() [all …]
|
/linux/mm/ |
A D | hugetlb_cgroup.c | 78 int idx; in hugetlb_cgroup_have_usage() local 80 for (idx = 0; idx < hugetlb_max_hstate; idx++) { in hugetlb_cgroup_have_usage() 91 int idx; in hugetlb_cgroup_init() local 93 for (idx = 0; idx < HUGE_MAX_HSTATE; idx++) { in hugetlb_cgroup_init() 106 idx), in hugetlb_cgroup_init() 199 int idx; in hugetlb_cgroup_css_offline() local 202 idx = 0; in hugetlb_cgroup_css_offline() 209 idx++; in hugetlb_cgroup_css_offline() 455 int idx; in hugetlb_cgroup_read_u64_max() local 499 int ret, idx; in hugetlb_cgroup_write() local [all …]
|
/linux/kernel/sched/ |
A D | cpudeadline.c | 40 l = left_child(idx); in cpudl_heapify_down() 42 largest = idx; in cpudl_heapify_down() 60 cp->elements[cp->elements[idx].cpu].idx = idx; in cpudl_heapify_down() 61 idx = largest; in cpudl_heapify_down() 66 cp->elements[cp->elements[idx].cpu].idx = idx; in cpudl_heapify_down() 76 if (idx == 0) in cpudl_heapify_up() 80 p = parent(idx); in cpudl_heapify_up() 86 cp->elements[cp->elements[idx].cpu].idx = idx; in cpudl_heapify_up() 87 idx = p; in cpudl_heapify_up() 92 cp->elements[cp->elements[idx].cpu].idx = idx; in cpudl_heapify_up() [all …]
|
/linux/arch/x86/um/ |
A D | tls_32.c | 66 int idx; in get_free_idx() local 71 for (idx = 0; idx < GDT_ENTRY_TLS_ENTRIES; idx++) in get_free_idx() 95 int idx; in load_TLS() local 97 for (idx = GDT_ENTRY_TLS_MIN; idx < GDT_ENTRY_TLS_MAX; idx++) { in load_TLS() 208 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX) in set_tls_entry() 239 int idx) in get_tls_entry() argument 246 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX) in get_tls_entry() 280 int idx, ret; in SYSCALL_DEFINE1() local 292 if (idx < 0) in SYSCALL_DEFINE1() 293 return idx; in SYSCALL_DEFINE1() [all …]
|
/linux/arch/x86/events/intel/ |
A D | uncore_nhmex.c | 705 if (idx[0] != 0xff && idx[0] != __BITS_VALUE(reg1->idx, 0, 8)) in nhmex_mbox_get_constraint() 723 idx[0] = (idx[0] + 1) % 4; in nhmex_mbox_get_constraint() 842 idx = __BITS_VALUE(reg1->idx, 0, 8); in nhmex_mbox_msr_enable_event() 992 idx = reg1->idx % 6; in nhmex_rbox_get_constraint() 1009 } else if (idx == 2 || idx == 3) { in nhmex_rbox_get_constraint() 1044 if (idx != reg1->idx % 6) { in nhmex_rbox_get_constraint() 1053 if (idx != reg1->idx % 6) in nhmex_rbox_get_constraint() 1071 idx = reg1->idx % 6; in nhmex_rbox_put_constraint() 1078 if (idx == 2 || idx == 3) in nhmex_rbox_put_constraint() 1098 reg1->idx = idx; in nhmex_rbox_hw_config() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
A D | evergreen_cs.c | 1073 unsigned idx; in evergreen_cs_parse_packet0() local 1076 idx = pkt->idx + 1; in evergreen_cs_parse_packet0() 1785 idx = pkt->idx + 1; in evergreen_packet3_check() 2104 ib[idx+1] = (ib[idx+1] & 0x3) | (offset & 0xfffffffc); in evergreen_packet3_check() 2802 u32 idx; in evergreen_dma_cs_parse() local 2812 idx = p->idx; in evergreen_dma_cs_parse() 3350 u32 idx = pkt->idx + 1; in evergreen_vm_packet3_check() local 3527 pkt.idx = idx; in evergreen_ib_parse() 3537 idx += 1; in evergreen_ib_parse() 3644 idx += 4; in evergreen_dma_ib_parse() [all …]
|
A D | r600_cs.c | 929 idx, reg); in r600_packet0_check() 944 unsigned idx; in r600_cs_parse_packet0() local 947 idx = pkt->idx + 1; in r600_cs_parse_packet0() 1315 ib[idx] |= 3; in r600_cs_check_reg() 1634 unsigned idx; in r600_packet3_check() local 1642 idx = pkt->idx + 1; in r600_packet3_check() 1772 ib[idx+1] = (ib[idx+1] & 0x3) | (offset & 0xfffffff0); in r600_packet3_check() 2013 ib[idx+1+(i*8)+2] = (ib[idx+1+(i*8)+2] & 0xffffff00) | in r600_packet3_check() 2347 unsigned idx; in r600_dma_cs_next_reloc() local 2394 idx = p->idx; in r600_dma_cs_parse() [all …]
|
/linux/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 …]
|
/linux/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
A D | Core.pm | 40 if (!$value && !$idx) { 45 if ($idx && ($value & $idx) == $idx) { 49 $string .= "$trace_flags{$idx}"; 51 $value &= ~$idx; 70 if (!$value && !$idx) { 74 if ($idx && ($value & $idx) == $idx) { 80 $value &= ~$idx; 110 print " value $idx: $flag_fields{$event}{$field}{'values'}{$idx}\n"; 122 if (!$value && !$idx) { 126 if ($value == $idx) { [all …]
|
/linux/drivers/net/ethernet/ti/ |
A D | cpsw_ale.c | 107 int idx; in cpsw_ale_get_field() local 111 idx = 2 - idx; /* flip */ in cpsw_ale_get_field() 118 int idx; in cpsw_ale_set_field() local 123 idx = 2 - idx; /* flip */ in cpsw_ale_set_field() 334 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_match_addr() 355 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_match_vlan() 371 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_match_free() 385 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_find_ageable() 424 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_flush_multicast() 774 for (idx = 0; idx < ale->params.ale_entries; idx++) { in cpsw_ale_set_unreg_mcast() [all …]
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
A D | dpu_hw_sspp.c | 173 u32 idx; in dpu_hw_sspp_setup_multirect() local 200 u32 idx; in _sspp_setup_opmode() local 221 u32 idx; in _sspp_setup_csc10_opmode() local 248 u32 idx; in dpu_hw_sspp_setup_format() local 364 u32 idx; in dpu_hw_sspp_setup_pe_config() local 419 u32 idx; in _dpu_hw_sspp_setup_scaler3() local 434 u32 idx; in _dpu_hw_sspp_get_scaler3_ver() local 452 u32 idx; in dpu_hw_sspp_setup_rects() local 519 u32 idx; in dpu_hw_sspp_setup_sourceaddress() local 544 u32 idx; in dpu_hw_sspp_setup_csc() local [all …]
|
/linux/include/asm-generic/ |
A D | fixmap.h | 33 return __fix_to_virt(idx); in fix_to_virt() 64 #define set_fixmap(idx, phys) \ argument 65 __set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL) 69 #define clear_fixmap(idx) \ argument 70 __set_fixmap(idx, 0, FIXMAP_PAGE_CLEAR) 77 __set_fixmap(idx, phys, flags); \ 82 #define set_fixmap_offset(idx, phys) \ argument 88 #define set_fixmap_nocache(idx, phys) \ argument 97 #define set_fixmap_io(idx, phys) \ argument 98 __set_fixmap(idx, phys, FIXMAP_PAGE_IO) [all …]
|
/linux/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 …]
|
/linux/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 …]
|
/linux/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 …]
|
/linux/arch/x86/kernel/ |
A D | tls.c | 24 int idx; in get_free_idx() local 26 for (idx = 0; idx < GDT_ENTRY_TLS_ENTRIES; idx++) in get_free_idx() 127 if (idx == -1) in do_set_thread_area() 128 idx = info.entry_number; in do_set_thread_area() 135 idx = get_free_idx(); in do_set_thread_area() 136 if (idx < 0) in do_set_thread_area() 137 return idx; in do_set_thread_area() 142 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX) in do_set_thread_area() 200 info->entry_number = idx; in fill_user_desc() 220 if (idx == -1 && get_user(idx, &u_info->entry_number)) in do_get_thread_area() [all …]
|
/linux/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 …]
|
/linux/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 …]
|