/linux-master/tools/lib/perf/ |
H A D | threadmap.c | 35 void perf_thread_map__set_pid(struct perf_thread_map *map, int idx, pid_t pid) argument 37 map->map[idx].pid = pid; 40 char *perf_thread_map__comm(struct perf_thread_map *map, int idx) argument 42 return map->map[idx].comm; 98 pid_t perf_thread_map__pid(struct perf_thread_map *map, int idx) argument 100 return map->map[idx].pid;
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | pci_init.c | 36 int ret, idx; local 58 idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT7615_WTBL_STA - 1); 59 if (idx) 62 dev->mt76.global_wcid.idx = idx; 64 rcu_assign_pointer(dev->mt76.wcid[idx], &dev->mt76.global_wcid);
|
/linux-master/arch/powerpc/platforms/embedded6xx/ |
H A D | wii.c | 37 #define HW_GPIO_BASE(idx) (idx * 0x20) 38 #define HW_GPIO_OUT(idx) (HW_GPIO_BASE(idx) + 0) 39 #define HW_GPIO_DIR(idx) (HW_GPIO_BASE(idx) + 4)
|
/linux-master/drivers/gpu/drm/radeon/ |
H A D | radeon_test.c | 266 uint32_t handle = ring->idx ^ 0xdeafbeef; 269 if (ring->idx == R600_RING_TYPE_UVD_INDEX) { 270 r = radeon_uvd_get_create_msg(rdev, ring->idx, handle, NULL); 276 r = radeon_uvd_get_destroy_msg(rdev, ring->idx, handle, fence); 282 } else if (ring->idx == TN_RING_TYPE_VCE1_INDEX || 283 ring->idx == TN_RING_TYPE_VCE2_INDEX) { 284 r = radeon_vce_get_create_msg(rdev, ring->idx, handle, NULL); 290 r = radeon_vce_get_destroy_msg(rdev, ring->idx, handle, fence); 299 DRM_ERROR("Failed to lock ring A %d\n", ring->idx); 302 r = radeon_fence_emit(rdev, fence, ring->idx); [all...] |
/linux-master/tools/testing/selftests/kvm/s390x/ |
H A D | debug_test.c | 151 int idx; local 155 for (idx = 0; idx < ARRAY_SIZE(testlist); idx++) { 156 testlist[idx].test(); 157 ksft_test_result_pass("%s\n", testlist[idx].name);
|
/linux-master/drivers/firmware/ |
H A D | mtk-adsp-ipc.c | 20 * @idx: index of the mailbox channel 26 int mtk_adsp_ipc_send(struct mtk_adsp_ipc *ipc, unsigned int idx, uint32_t msg) argument 31 if (idx >= MTK_ADSP_MBOX_NUM) 34 adsp_chan = &ipc->chans[idx]; 57 switch (chan->idx) { 65 dev_err(dev, "wrong mbox chan %d\n", chan->idx); 95 adsp_chan->idx = i;
|
/linux-master/drivers/net/wireless/mediatek/mt76/ |
H A D | util.c | 47 int i, idx = 0, cur; local 50 idx = ffs(~mask[i]); 51 if (!idx) 54 idx--; 55 cur = i * 32 + idx; 59 mask[i] |= BIT(idx);
|
H A D | mt76x02_mac.c | 81 void mt76x02_mac_wcid_sync_pn(struct mt76x02_dev *dev, u8 idx, argument 90 iv = mt76_rr(dev, MT_WCID_IV(idx)); 91 eiv = mt76_rr(dev, MT_WCID_IV(idx) + 4); 106 int mt76x02_mac_wcid_set_key(struct mt76x02_dev *dev, u8 idx, argument 118 mt76_wr_copy(dev, MT_WCID_KEY(idx), key_data, sizeof(key_data)); 119 mt76_rmw_field(dev, MT_WCID_ATTR(idx), MT_WCID_ATTR_PKEY_MODE, cipher); 123 mt76_rmw_field(dev, MT_WCID_ATTR(idx), MT_WCID_ATTR_PAIRWISE, 143 mt76_wr_copy(dev, MT_WCID_IV(idx), iv_data, sizeof(iv_data)); 148 void mt76x02_mac_wcid_setup(struct mt76x02_dev *dev, u8 idx, argument 157 mt76_wr(dev, MT_WCID_ATTR(idx), att 169 mt76x02_mac_wcid_set_drop(struct mt76x02_dev *dev, u8 idx, bool drop) argument 282 u8 idx = FIELD_GET(MT_RXWI_RATE_INDEX, rate); local 440 mt76x02_tx_rate_fallback(struct ieee80211_tx_rate *rates, int idx, int phy) argument 661 u8 idx = FIELD_GET(MT_RXWI_RATE_INDEX, rate); local 1190 int i, idx; local 1234 mt76x02_mac_set_bssid(struct mt76x02_dev *dev, u8 idx, const u8 *addr) argument [all...] |
/linux-master/drivers/hid/amd-sfh-hid/ |
H A D | amd_sfh_common.h | 89 static inline u64 amd_get_c2p_val(struct amd_mp2_dev *mp2, u32 idx) argument 91 return mp2->rver == 1 ? AMD_C2P_MSG_V1(idx) : AMD_C2P_MSG(idx); 94 static inline u64 amd_get_p2c_val(struct amd_mp2_dev *mp2, u32 idx) argument 96 return mp2->rver == 1 ? AMD_P2C_MSG_V1(idx) : AMD_P2C_MSG(idx);
|
/linux-master/sound/core/ |
H A D | info_oss.c | 49 int idx, ok = -1; local 54 for (idx = 0; idx < SNDRV_CARDS; idx++) { 55 str = snd_sndstat_strings[idx][dev]; 61 snd_iprintf(buf, "%i: %s\n", idx, str);
|
/linux-master/drivers/perf/ |
H A D | arm-cci.c | 36 #define CCI_PMU_CNTR_BASE(model, idx) ((idx) * CCI_PMU_CNTR_SIZE(model)) 313 int idx; local 315 /* cycles event idx is fixed */ 323 for (idx = CCI400_PMU_CNTR0_IDX; idx <= CCI_PMU_CNTR_LAST(cci_pmu); ++idx) 324 if (!test_and_set_bit(idx, hw->used_mask)) 325 return idx; 709 static int pmu_is_valid_counter(struct cci_pmu *cci_pmu, int idx) argument 714 pmu_read_register(struct cci_pmu *cci_pmu, int idx, unsigned int offset) argument 720 pmu_write_register(struct cci_pmu *cci_pmu, u32 value, int idx, unsigned int offset) argument 727 pmu_disable_counter(struct cci_pmu *cci_pmu, int idx) argument 732 pmu_enable_counter(struct cci_pmu *cci_pmu, int idx) argument 738 pmu_counter_is_enabled(struct cci_pmu *cci_pmu, int idx) argument 743 pmu_set_event(struct cci_pmu *cci_pmu, int idx, unsigned long event) argument 800 int idx; local 876 int idx = hw_counter->idx; local 888 pmu_write_counter(struct cci_pmu *cci_pmu, u32 value, int idx) argument 1028 int idx, handled = IRQ_NONE; local 1124 pmu_fixed_hw_idx(struct cci_pmu *cci_pmu, int idx) argument 1134 int idx = hwc->idx; local 1167 int idx = hwc->idx; local 1191 int idx; local 1216 int idx = hwc->idx; local [all...] |
H A D | arm_dsu_pmu.c | 70 #define DSU_PMU_COUNTER_WIDTH(idx) \ 71 (((idx) == DSU_PMU_IDX_CYCLE_COUNTER) ? 64 : 32) 73 #define DSU_PMU_COUNTER_MASK(idx) \ 74 GENMASK_ULL((DSU_PMU_COUNTER_WIDTH((idx)) - 1), 0) 233 static inline bool dsu_pmu_counter_valid(struct dsu_pmu *dsu_pmu, u32 idx) argument 235 return (idx < dsu_pmu->num_counters) || 236 (idx == DSU_PMU_IDX_CYCLE_COUNTER); 244 int idx = event->hw.idx; local 250 if (!dsu_pmu_counter_valid(dsu_pmu, idx)) { 270 int idx = event->hw.idx; local 293 int idx; local 311 dsu_pmu_enable_counter(struct dsu_pmu *dsu_pmu, int idx) argument 317 dsu_pmu_disable_counter(struct dsu_pmu *dsu_pmu, int idx) argument 326 int idx = event->hw.idx; local 374 int idx = event->hw.idx; local 436 int idx; local 462 int idx = hwc->idx; local [all...] |
/linux-master/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api_kunit.c | 37 int idx; local 42 for (idx = 0; idx < kslist->cnt; idx++) { 43 if (kslist->keysets[idx] == VCAP_KFS_ETAG) 44 return kslist->keysets[idx]; 45 if (kslist->keysets[idx] == VCAP_KFS_PURE_5TUPLE_IP4) 46 return kslist->keysets[idx]; 47 if (kslist->keysets[idx] == VCAP_KFS_NORMAL_5TUPLE_IP4) 48 return kslist->keysets[idx]; 107 int idx; local 149 int idx; local 403 int idx; local 638 int idx; local 892 int idx; local 968 int idx; local 1026 int idx; local 1213 int idx; local 1260 int idx; local 1307 int idx; local 1372 int idx; local 1630 int idx; local 2040 int idx; local 2164 int idx; local [all...] |
/linux-master/arch/x86/events/intel/ |
H A D | uncore.h | 25 #define UNCORE_PCI_DEV_FULL_DATA(dev, func, type, idx) \ 26 ((dev << 24) | (func << 16) | (type << 8) | idx) 27 #define UNCORE_PCI_DEV_DATA(type, idx) ((type << 8) | idx) 247 static inline bool uncore_pmc_fixed(int idx) argument 249 return idx == UNCORE_PMC_IDX_FIXED; 252 static inline bool uncore_pmc_freerunning(int idx) argument 254 return idx == UNCORE_PMC_IDX_FREERUNNING; 292 unsigned uncore_pci_event_ctl(struct intel_uncore_box *box, int idx) argument 295 return idx * 301 uncore_pci_perf_ctr(struct intel_uncore_box *box, int idx) argument 379 unsigned int idx = uncore_freerunning_idx(event->hw.config); local 390 uncore_msr_event_ctl(struct intel_uncore_box *box, int idx) argument 403 uncore_msr_perf_ctr(struct intel_uncore_box *box, int idx) argument 434 uncore_event_ctl(struct intel_uncore_box *box, int idx) argument 443 uncore_perf_ctr(struct intel_uncore_box *box, int idx) argument 488 unsigned int idx = uncore_freerunning_idx(event->hw.config); local [all...] |
/linux-master/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_common.c | 323 * @idx: index pointing to the start of the ring iteration 330 u32 idx) 336 id_tx = fm10k_read_reg(hw, FM10K_TXQCTL(idx)); 340 tx_packets = fm10k_read_hw_stats_32b(hw, FM10K_QPTC(idx), 345 FM10K_QBTC_L(idx), 350 id_tx = fm10k_read_reg(hw, FM10K_TXQCTL(idx)); 374 * @idx: index pointing to the start of the ring iteration 381 u32 idx) 387 id_rx = fm10k_read_reg(hw, FM10K_RXQCTL(idx)); 391 rx_drops = fm10k_read_hw_stats_32b(hw, FM10K_QPRDC(idx), 328 fm10k_update_hw_stats_tx_q(struct fm10k_hw *hw, struct fm10k_hw_stats_q *q, u32 idx) argument 379 fm10k_update_hw_stats_rx_q(struct fm10k_hw *hw, struct fm10k_hw_stats_q *q, u32 idx) argument 436 fm10k_update_hw_stats_q(struct fm10k_hw *hw, struct fm10k_hw_stats_q *q, u32 idx, u32 count) argument 456 fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx, u32 count) argument [all...] |
/linux-master/drivers/staging/media/meson/vdec/ |
H A D | codec_hevc_common.c | 65 u32 idx = 0; local 74 idx = vb->index; 77 buf_y_paddr = comm->fbc_buffer_paddr[idx]; 82 val = buf_y_paddr | (idx << 8) | 1; 87 val = buf_y_paddr | ((idx * 2) << 8) | 1; 90 val = buf_uv_paddr | ((idx * 2 + 1) << 8) | 1; 97 val = buf_y_paddr | (idx << 8) | 1; 99 val = buf_y_paddr | ((idx * 2) << 8) | 1; 128 u32 idx = vb->index; local 131 buf_y_paddr = comm->mmu_header_paddr[idx]; 179 u32 idx = buf->vb.vb2_buf.index; local 232 u32 idx = buf->vb.vb2_buf.index; local [all...] |
/linux-master/drivers/usb/usbip/ |
H A D | stub_main.c | 49 int idx = -1; local 55 idx = i; 61 return idx; 67 int idx; local 71 idx = get_busid_idx(busid); 72 if (idx >= 0) { 73 bid = &(busid_table[idx]); 122 int idx; local 126 idx = get_busid_idx(busid); 127 if (idx < [all...] |
/linux-master/include/linux/ |
H A D | vdpa.h | 141 * @idx: virtqueue index 148 * @idx: virtqueue index 152 * @idx: virtqueue index 164 * @idx: virtqueue index 168 * @idx: virtqueue index 172 * @idx: virtqueue index 176 * @idx: virtqueue index 181 * @idx: virtqueue index 185 * @idx: virtqueue index 191 * @idx [all...] |
/linux-master/net/ipv6/netfilter/ |
H A D | ip6t_NPT.c | 43 unsigned int i, idx; local 54 idx = i / 32; 55 addr->s6_addr32[idx] &= mask; 56 addr->s6_addr32[idx] |= ~mask & npt->dst_pfx.in6.s6_addr32[idx]; 60 idx = 3; 62 for (idx = 4; idx < ARRAY_SIZE(addr->s6_addr16); idx++) { 63 if ((__force __sum16)addr->s6_addr16[idx] ! [all...] |
/linux-master/drivers/scsi/csiostor/ |
H A D | csio_hw_t5.c | 136 * @idx: index to the register 146 csio_t5_mc_read(struct csio_hw *hw, int idx, uint32_t addr, __be32 *data, argument 153 mc_bist_cmd_reg = MC_REG(MC_P_BIST_CMD_A, idx); 154 mc_bist_cmd_addr_reg = MC_REG(MC_P_BIST_CMD_ADDR_A, idx); 155 mc_bist_cmd_len_reg = MC_REG(MC_P_BIST_CMD_LEN_A, idx); 156 mc_bist_data_pattern_reg = MC_REG(MC_P_BIST_DATA_PATTERN_A, idx); 183 * @idx: which EDC to access 193 csio_t5_edc_read(struct csio_hw *hw, int idx, uint32_t addr, __be32 *data, argument 204 #define EDC_REG_T5(reg, idx) (reg + EDC_STRIDE_T5 * idx) [all...] |
/linux-master/sound/pci/ctxfi/ |
H A D | cthardware.h | 108 int (*src_commit_write)(struct hw *hw, unsigned int idx, void *blk); 109 int (*src_get_ca)(struct hw *hw, unsigned int idx, void *blk); 114 /* syncly enable src @idx */ 115 int (*src_mgr_enbs_src)(void *blk, unsigned int idx); 116 /* enable src @idx */ 117 int (*src_mgr_enb_src)(void *blk, unsigned int idx); 118 /* disable src @idx */ 119 int (*src_mgr_dsb_src)(void *blk, unsigned int idx); 144 int (*amixer_commit_write)(struct hw *hw, unsigned int idx, void *blk); 157 int (*dai_commit_write)(struct hw *hw, unsigned int idx, voi [all...] |
/linux-master/tools/perf/util/ |
H A D | bpf_counter_cgroup.c | 125 __u32 idx = evsel->core.idx * total_cpus + cpu.cpu; local 127 bpf_map_update_elem(map_fd, &idx, &fd, BPF_ANY); 202 int idx; local 205 perf_cpu_map__for_each_cpu(cpu, idx, evlist->core.all_cpus) 213 if (evsel->core.idx) 224 if (evsel->core.idx) 241 if (evsel->core.idx) 253 __u32 idx = evsel->core.idx; local [all...] |
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_mng_tlv.c | 267 int idx = p_tlv->tlv_type - DRV_TLV_LOCAL_ADMIN_ADDR; local 269 if (p_drv_buf->mac_set[idx]) { 270 p_buf->p_val = p_drv_buf->mac[idx]; 447 u8 idx; local 635 idx = (p_tlv->tlv_type - 638 if (p_drv_buf->crc_err_src_fcid_set[idx]) { 639 p_buf->p_val = &p_drv_buf->crc_err_src_fcid[idx]; 640 return sizeof(p_drv_buf->crc_err_src_fcid[idx]); 648 idx = (p_tlv->tlv_type - DRV_TLV_CRC_ERROR_1_TIMESTAMP) / 2; 650 return qed_mfw_get_tlv_time_value(&p_drv_buf->crc_err[idx], [all...] |
/linux-master/kernel/locking/ |
H A D | qspinlock.c | 116 static inline __pure u32 encode_tail(int cpu, int idx) argument 121 tail |= idx << _Q_TAIL_IDX_OFFSET; /* assume < 4 */ 129 int idx = (tail & _Q_TAIL_IDX_MASK) >> _Q_TAIL_IDX_OFFSET; local 131 return per_cpu_ptr(&qnodes[idx].mcs, cpu); 135 struct mcs_spinlock *grab_mcs_node(struct mcs_spinlock *base, int idx) argument 137 return &((struct qnode *)base + idx)->mcs; 317 int idx; local 399 idx = node->count++; 400 tail = encode_tail(smp_processor_id(), idx); 413 if (unlikely(idx > [all...] |
/linux-master/drivers/edac/ |
H A D | dmc520_edac.c | 432 int idx; local 434 for (idx = 0; idx < NUMBER_OF_IRQS; idx++) { 435 if (pvt->irqs[idx] == irq) { 436 mask = pvt->masks[idx]; 485 int ret, idx, irq; local 491 for (idx = 0; idx < NUMBER_OF_IRQS; idx 607 u32 reg_val, idx, irq_mask_all = 0; local [all...] |