/linux/drivers/staging/octeon-usb/ |
A D | octeon-hcd.h | 61 #define CVMX_USBCX_GAHBCFG(bid) CVMX_USBCXREG1(0x008, bid) argument 62 #define CVMX_USBCX_GHWCFG3(bid) CVMX_USBCXREG1(0x04c, bid) argument 63 #define CVMX_USBCX_GINTMSK(bid) CVMX_USBCXREG1(0x018, bid) argument 64 #define CVMX_USBCX_GINTSTS(bid) CVMX_USBCXREG1(0x014, bid) argument 66 #define CVMX_USBCX_GNPTXSTS(bid) CVMX_USBCXREG1(0x02c, bid) argument 72 #define CVMX_USBCX_HAINT(bid) CVMX_USBCXREG1(0x414, bid) argument 75 #define CVMX_USBCX_HCFG(bid) CVMX_USBCXREG1(0x400, bid) argument 80 #define CVMX_USBCX_HFIR(bid) CVMX_USBCXREG1(0x404, bid) argument 81 #define CVMX_USBCX_HFNUM(bid) CVMX_USBCXREG1(0x408, bid) argument 82 #define CVMX_USBCX_HPRT(bid) CVMX_USBCXREG1(0x440, bid) argument [all …]
|
/linux/drivers/s390/char/ |
A D | tape_34xx.c | 892 new_sbid->bid = bid; in tape_34xx_append_new_sbid() 914 if (!sbid_list || (bid.segment < 2 && bid.wrap == 0)) in tape_34xx_add_sbid() 929 (sbid->bid.segment == bid.segment) && in tape_34xx_add_sbid() 930 (sbid->bid.wrap == bid.wrap) in tape_34xx_add_sbid() 932 if (bid.block < sbid->bid.block) in tape_34xx_add_sbid() 933 sbid->bid = bid; in tape_34xx_add_sbid() 939 if (bid.block < sbid->bid.block) { in tape_34xx_add_sbid() 1013 if (sbid->bid.block >= bid->block) in tape_34xx_merge_sbid() 1018 bid->wrap = sbid_to_use->bid.wrap; in tape_34xx_merge_sbid() 1019 bid->segment = sbid_to_use->bid.segment; in tape_34xx_merge_sbid() [all …]
|
/linux/drivers/misc/sgi-gru/ |
A D | grufile.c | 254 int pnode, nid, bid, chip; in gru_init_tables() local 264 for_each_possible_blade(bid) { in gru_init_tables() 265 pnode = uv_blade_to_pnode(bid); in gru_init_tables() 270 gru_base[bid] = page_address(page); in gru_init_tables() 272 gru_base[bid]->bs_lru_gru = &gru_base[bid]->bs_grus[0]; in gru_init_tables() 273 spin_lock_init(&gru_base[bid]->bs_lock); in gru_init_tables() 274 init_rwsem(&gru_base[bid]->bs_kgts_sema); in gru_init_tables() 278 for (gru = gru_base[bid]->bs_grus, chip = 0; in gru_init_tables() 296 for (bid--; bid >= 0; bid--) in gru_init_tables() 303 int bid; in gru_free_tables() local [all …]
|
A D | grukservices.c | 191 int bid, ret = 0; in gru_free_kernel_contexts() local 193 for (bid = 0; bid < GRU_MAX_BLADES; bid++) { in gru_free_kernel_contexts() 194 bs = gru_base[bid]; in gru_free_kernel_contexts() 219 int bid; in gru_lock_kernel_context() local 224 bs = gru_base[bid]; in gru_lock_kernel_context() 228 if (blade_id < 0 && bid != uv_numa_blade_id()) { in gru_lock_kernel_context() 233 gru_load_kernel_context(bs, bid); in gru_lock_kernel_context() 393 int cbrnum, bid; in gru_get_cb_exception_detail() local 400 for_each_possible_blade(bid) { in gru_get_cb_exception_detail() 401 if (!gru_base[bid]) in gru_get_cb_exception_detail() [all …]
|
/linux/tools/perf/util/ |
A D | symbol-minimal.c | 37 size_t size = sizeof(bid->data); in read_build_id() 67 memcpy(bid->data, ptr, sz); in read_build_id() 68 memset(bid->data + sz, 0, size - sz); in read_build_id() 69 bid->size = sz; in read_build_id() 161 ret = read_build_id(buf, buf_size, bid, need_swap); in filename__read_build_id() 163 ret = bid->size; in filename__read_build_id() 214 ret = bid->size; in filename__read_build_id() 248 ret = read_build_id(buf, buf_size, bid, false); in sysfs__read_build_id() 344 struct build_id bid; in dso__load_sym() local 351 if (filename__read_build_id(ss->name, &bid) > 0) in dso__load_sym() [all …]
|
A D | build-id.c | 102 char *bid = bf; in build_id__sprintf() local 109 sprintf(bid, "%02x", *raw); in build_id__sprintf() 111 bid += 2; in build_id__sprintf() 114 return (bid - bf) + 1; in build_id__sprintf() 120 struct build_id bid; in sysfs__sprintf_build_id() local 137 struct build_id bid; in filename__sprintf_build_id() local 320 memcpy(&b.data, bid->data, bid->size); in write_buildid() 321 b.size = (u8) bid->size; in write_buildid() 947 memcpy(bid->data, data, size); in build_id__init() 948 bid->size = size; in build_id__init() [all …]
|
A D | dso.c | 178 build_id__sprintf(&dso->bid, build_id_hex); in dso__read_binary_type_filename() 1347 dso->bid = *bid; in dso__set_build_id() 1353 if (dso->bid.size > bid->size && dso->bid.size == BUILD_ID_SIZE) { in dso__build_id_equal() 1358 return !memcmp(dso->bid.data, bid->data, bid->size) && in dso__build_id_equal() 1359 !memchr_inv(&dso->bid.data[bid->size], 0, in dso__build_id_equal() 1360 dso->bid.size - bid->size); in dso__build_id_equal() 1363 return dso->bid.size == bid->size && in dso__build_id_equal() 1364 memcmp(dso->bid.data, bid->data, dso->bid.size) == 0; in dso__build_id_equal() 1374 if (sysfs__read_build_id(path, &dso->bid) == 0) in dso__read_running_kernel_build_id() 1392 if (sysfs__read_build_id(filename, &dso->bid) == 0) in dso__kernel_module_get_build_id() [all …]
|
A D | build-id.h | 25 void build_id__init(struct build_id *bid, const u8 *data, size_t size); 27 bool build_id__is_defined(const struct build_id *bid);
|
A D | symbol-elf.c | 544 size_t size = sizeof(bid->data); in read_build_id() 562 err = bid->size = abfd->build_id->size; in read_build_id() 573 size_t size = sizeof(bid->data); in read_build_id() 592 bid->size = err; in read_build_id() 629 err = read_build_id(filename, bid); in filename__read_build_id() 638 size_t size = sizeof(bid->data); in sysfs__read_build_id() 662 memset(bid->data + sz, 0, size - sz); in sysfs__read_build_id() 663 bid->size = sz; in sysfs__read_build_id() 875 struct build_id bid; in symsrc__init() local 884 build_id__init(&bid, build_id, size); in symsrc__init() [all …]
|
A D | dso.h | 180 struct build_id bid; member 264 void dso__set_build_id(struct dso *dso, struct build_id *bid); 265 bool dso__build_id_equal(const struct dso *dso, struct build_id *bid);
|
/linux/arch/x86/platform/uv/ |
A D | uv_time.c | 126 int bid; in uv_rtc_deallocate_timers() local 128 for_each_possible_blade(bid) { in uv_rtc_deallocate_timers() 129 kfree(blade_info[bid]); in uv_rtc_deallocate_timers() 145 int bid = uv_cpu_to_blade_id(cpu); in uv_rtc_allocate_timers() local 151 uv_blade_nr_possible_cpus(bid)), in uv_rtc_allocate_timers() 158 head->ncpus = uv_blade_nr_possible_cpus(bid); in uv_rtc_allocate_timers() 160 blade_info[bid] = head; in uv_rtc_allocate_timers() 204 int bid = uv_cpu_to_blade_id(cpu); in uv_rtc_set_timer() local 205 struct uv_rtc_timer_head *head = blade_info[bid]; in uv_rtc_set_timer() 240 int bid = uv_cpu_to_blade_id(cpu); in uv_rtc_unset_timer() local [all …]
|
/linux/drivers/usb/usbip/ |
A D | stub_main.c | 68 struct bus_id_priv *bid = NULL; in get_busid_priv() local 73 bid = &(busid_table[idx]); in get_busid_priv() 75 spin_lock(&bid->busid_lock); in get_busid_priv() 79 return bid; in get_busid_priv() 84 if (bid) in put_busid_priv() 85 spin_unlock(&bid->busid_lock); in put_busid_priv() 249 struct bus_id_priv *bid; in rebind_store() local 257 bid = get_busid_priv(buf); in rebind_store() 258 if (!bid) in rebind_store() 262 bid->status = STUB_BUSID_OTHER; in rebind_store() [all …]
|
A D | stub.h | 91 void put_busid_priv(struct bus_id_priv *bid);
|
/linux/tools/perf/ |
A D | builtin-buildid-cache.c | 178 struct build_id bid; in build_id_cache__add_file() local 183 err = filename__read_build_id(filename, &bid); in build_id_cache__add_file() 190 build_id__sprintf(&bid, sbuild_id); in build_id_cache__add_file() 201 struct build_id bid; in build_id_cache__remove_file() local 207 err = filename__read_build_id(filename, &bid); in build_id_cache__remove_file() 214 build_id__sprintf(&bid, sbuild_id); in build_id_cache__remove_file() 278 struct build_id bid; in dso__missing_buildid_cache() local 287 } else if (memcmp(dso->bid.data, bid.data, bid.size)) { in dso__missing_buildid_cache() 304 struct build_id bid; in build_id_cache__update_file() local 310 err = filename__read_build_id(filename, &bid); in build_id_cache__update_file() [all …]
|
/linux/arch/x86/include/asm/uv/ |
A D | uv_hub.h | 372 #define for_each_possible_blade(bid) \ argument 373 for ((bid) = 0; (bid) < uv_num_possible_blades(); (bid)++) 673 static inline int uv_blade_to_pnode(int bid) in uv_blade_to_pnode() argument 675 return uv_hub_info_list(uv_blade_to_node(bid))->pnode; in uv_blade_to_pnode() 679 static inline int uv_blade_to_memory_nid(int bid) in uv_blade_to_memory_nid() argument 681 return uv_hub_info_list(uv_blade_to_node(bid))->memory_nid; in uv_blade_to_memory_nid() 685 static inline int uv_blade_nr_possible_cpus(int bid) in uv_blade_nr_possible_cpus() argument 687 return uv_hub_info_list(uv_blade_to_node(bid))->nr_possible_cpus; in uv_blade_nr_possible_cpus() 691 static inline int uv_blade_nr_online_cpus(int bid) in uv_blade_nr_online_cpus() argument 693 return uv_hub_info_list(uv_blade_to_node(bid))->nr_online_cpus; in uv_blade_nr_online_cpus()
|
/linux/tools/perf/tests/ |
A D | pe-file-parsing.c | 27 struct build_id bid; in run_dir() local 39 ret = filename__read_build_id(filename, &bid); in run_dir() 42 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir() 51 ret = filename__read_build_id(debugfile, &bid); in run_dir() 54 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir()
|
A D | sdt.c | 31 struct build_id bid; in build_id_cache__add_file() local 34 err = filename__read_build_id(filename, &bid); in build_id_cache__add_file() 40 build_id__sprintf(&bid, sbuild_id); in build_id_cache__add_file()
|
/linux/arch/mips/alchemy/devboards/ |
A D | db1200.c | 86 int bid; in db1200_detect_board() local 103 bid = BCSR_WHOAMI_BOARD(bcsr_read(BCSR_WHOAMI)); in db1200_detect_board() 104 if ((bid == BCSR_WHOAMI_PB1200_DDR1) || in db1200_detect_board() 105 (bid == BCSR_WHOAMI_PB1200_DDR2)) { in db1200_detect_board() 812 int swapped, bid; in db1200_dev_setup() local 815 bid = BCSR_WHOAMI_BOARD(bcsr_read(BCSR_WHOAMI)); in db1200_dev_setup() 816 if ((bid == BCSR_WHOAMI_PB1200_DDR1) || in db1200_dev_setup() 817 (bid == BCSR_WHOAMI_PB1200_DDR2)) { in db1200_dev_setup() 947 if ((bid == BCSR_WHOAMI_PB1200_DDR1) || in db1200_dev_setup() 948 (bid == BCSR_WHOAMI_PB1200_DDR2)) in db1200_dev_setup()
|
/linux/arch/ia64/include/asm/uv/ |
A D | uv_hub.h | 273 static inline int uv_blade_to_pnode(int bid) in uv_blade_to_pnode() argument 279 static inline int uv_blade_nr_possible_cpus(int bid) in uv_blade_nr_possible_cpus() argument 285 static inline int uv_blade_nr_online_cpus(int bid) in uv_blade_nr_online_cpus() argument
|
/linux/Documentation/devicetree/bindings/nvmem/ |
A D | amlogic-efuse.txt | 30 bid: bid@46 {
|
/linux/arch/powerpc/kvm/ |
A D | book3s_xive.h | 214 u32 bid = irq >> KVMPPC_XICS_ICS_SHIFT; in kvmppc_xive_find_source() local 219 if (bid > KVMPPC_XICS_MAX_ICS_ID) in kvmppc_xive_find_source() 221 return xive->src_blocks[bid]; in kvmppc_xive_find_source()
|
A D | book3s_xive.c | 1664 int i, bid; in kvmppc_xive_create_src_block() local 1666 bid = irq >> KVMPPC_XICS_ICS_SHIFT; in kvmppc_xive_create_src_block() 1671 if (xive->src_blocks[bid]) in kvmppc_xive_create_src_block() 1679 sb->id = bid; in kvmppc_xive_create_src_block() 1682 sb->irq_state[i].number = (bid << KVMPPC_XICS_ICS_SHIFT) | i; in kvmppc_xive_create_src_block() 1689 xive->src_blocks[bid] = sb; in kvmppc_xive_create_src_block() 1691 if (bid > xive->max_sbid) in kvmppc_xive_create_src_block() 1692 xive->max_sbid = bid; in kvmppc_xive_create_src_block() 1696 return xive->src_blocks[bid]; in kvmppc_xive_create_src_block()
|
/linux/drivers/pcmcia/ |
A D | db1xxx_ss.c | 428 int ret, bid; in db1x_pcmcia_socket_probe() local 436 bid = BCSR_WHOAMI_BOARD(bcsr_read(BCSR_WHOAMI)); in db1x_pcmcia_socket_probe() 437 switch (bid) { in db1x_pcmcia_socket_probe() 453 printk(KERN_INFO "db1xxx-ss: unknown board %d!\n", bid); in db1x_pcmcia_socket_probe()
|
/linux/drivers/phy/intel/ |
A D | phy-intel-lgm-combo.c | 95 u32 bid; member 114 return regmap_update_bits(cbphy->hsiocfg, REG_CLK_DISABLE(cbphy->bid), in intel_cbphy_iphy_enable() 231 ret = regmap_write(cbphy->hsiocfg, REG_COMBO_MODE(cbphy->bid), cb_mode); in intel_cbphy_set_mode() 482 cbphy->bid = ref.args[0]; in intel_cbphy_fwnode_parse()
|
/linux/net/tipc/ |
A D | udp_media.c | 457 u32 bid = cb->args[0]; in tipc_udp_nl_dump_remoteip() local 467 if (!bid && !skip_cnt) { in tipc_udp_nl_dump_remoteip() 493 bid = b->identity; in tipc_udp_nl_dump_remoteip() 499 b = rtnl_dereference(tn->bearer_list[bid]); in tipc_udp_nl_dump_remoteip() 535 cb->args[0] = bid; in tipc_udp_nl_dump_remoteip()
|