Home
last modified time | relevance | path

Searched refs:bid (Results 1 – 25 of 52) sorted by relevance

123

/linux/drivers/usb/host/
H A Docteon-hcd.h54 #define CVMX_USBCXREG1(reg, bid) \ argument
56 ((bid) & 1) * 0x100000000000ull)
57 #define CVMX_USBCXREG2(reg, bid, off) \ argument
59 (((off) & 7) + ((bid) & 1) * 0x8000000000ull) * 32)
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
65 #define CVMX_USBCX_GNPTXFSIZ(bid) CVMX_USBCXREG1(0x028, bid) argument
66 #define CVMX_USBCX_GNPTXSTS(bid) CVMX_USBCXREG1(0x02c, bid) argument
[all …]
/linux/drivers/s390/char/
H A Dtape_34xx.c47 struct tape_34xx_block_id bid; member
884 tape_34xx_append_new_sbid(struct tape_34xx_block_id bid, struct list_head *l) in tape_34xx_append_new_sbid() argument
892 new_sbid->bid = bid; in tape_34xx_append_new_sbid()
902 tape_34xx_add_sbid(struct tape_device *device, struct tape_34xx_block_id bid) in tape_34xx_add_sbid() argument
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()
[all …]
/linux/drivers/misc/sgi-gru/
H A Dgrufile.c254 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()
266 nid = uv_blade_to_memory_nid(bid);/* -1 if no memory on blade */ in gru_init_tables()
270 gru_base[bid] = page_address(page); in gru_init_tables()
271 memset(gru_base[bid], 0, sizeof(struct gru_blade_state)); 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()
[all …]
H A Dgrukservices.c191 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
223 bid = blade_id < 0 ? uv_numa_blade_id() : blade_id; in gru_lock_kernel_context()
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()
391 int cbrnum, bid; in gru_get_cb_exception_detail() local
398 for_each_possible_blade(bid) { in gru_get_cb_exception_detail()
[all …]
/linux/tools/perf/util/
H A Dsymbol-minimal.c34 static int read_build_id(void *note_data, size_t note_len, struct build_id *bid, in read_build_id() argument
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()
89 int filename__read_build_id(const char *filename, struct build_id *bid) in filename__read_build_id() argument
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()
213 ret = read_build_id(buf, buf_size, bid, need_swap); in filename__read_build_id()
215 ret = bid in filename__read_build_id()
227 sysfs__read_build_id(const char * filename,struct build_id * bid) sysfs__read_build_id() argument
346 struct build_id bid; dso__load_sym() local
[all...]
H A Dbuild-id.c72 char *bid = bf; in build_id__sprintf() local
79 sprintf(bid, "%02x", *raw); in build_id__sprintf()
81 bid += 2; in build_id__sprintf()
84 return (bid - bf) + 1; in build_id__sprintf()
90 struct build_id bid; in sysfs__sprintf_build_id() local
98 ret = sysfs__read_build_id(notes, &bid); in sysfs__sprintf_build_id()
102 return build_id__sprintf(&bid, sbuild_id); in sysfs__sprintf_build_id()
107 struct build_id bid; in filename__sprintf_build_id() local
110 ret = filename__read_build_id(pathname, &bid); in filename__sprintf_build_id()
114 return build_id__sprintf(&bid, sbuild_i in filename__sprintf_build_id()
273 write_buildid(const char * name,size_t name_len,struct build_id * bid,pid_t pid,u16 misc,struct feat_fd * fd) write_buildid() argument
764 build_id_cache__add_b(const struct build_id * bid,const char * name,struct nsinfo * nsi,bool is_kallsyms,bool is_vdso,const char * proper_name,const char * root_dir) build_id_cache__add_b() argument
829 filename__read_build_id_ns(const char * filename,struct build_id * bid,struct nsinfo * nsi) filename__read_build_id_ns() argument
844 struct build_id bid; dso__build_id_mismatch() local
952 build_id__init(struct build_id * bid,const u8 * data,size_t size) build_id__init() argument
959 build_id__is_defined(const struct build_id * bid) build_id__is_defined() argument
[all...]
H A Dprint-events.c180 char *bid = strchr(sdt_name->s, '@'); in print_sdt_events()
183 if (bid) in print_sdt_events()
184 *(bid++) = '\0'; in print_sdt_events()
204 char *path = build_id_cache__origname(bid); in print_sdt_events()
207 if (asprintf(&evt_name, "%s@%s(%.12s)", sdt_name->s, path, bid) < 0) in print_sdt_events()
194 char *bid = strchr(sdt_name->s, '@'); print_sdt_events() local
H A Ddebuginfo.c106 struct build_id bid; in debuginfo__new() local
114 if (is_regular_file(path) && filename__read_build_id(path, &bid) > 0) in debuginfo__new()
115 dso__set_build_id(dso, &bid); in debuginfo__new()
H A Dbuild-id.h23 void build_id__init(struct build_id *bid, const u8 *data, size_t size);
25 bool build_id__is_defined(const struct build_id *bid);
H A Ddso.c1528 void dso__set_build_id(struct dso *dso, struct build_id *bid) in dso__set_build_id() argument
1530 RC_CHK_ACCESS(dso)->bid = *bid; in dso__set_build_id()
1534 bool dso__build_id_equal(const struct dso *dso, struct build_id *bid) in dso__build_id_equal() argument
1538 if (dso_bid->size > bid->size && dso_bid->size == BUILD_ID_SIZE) { in dso__build_id_equal()
1543 return !memcmp(dso_bid->data, bid->data, bid->size) && in dso__build_id_equal()
1544 !memchr_inv(&dso_bid->data[bid->size], 0, in dso__build_id_equal()
1545 dso_bid->size - bid->size); in dso__build_id_equal()
1548 return dso_bid->size == bid->size && in dso__build_id_equal()
1549 memcmp(dso_bid->data, bid->data, dso_bid->size) == 0; in dso__build_id_equal()
H A Dsymbol-elf.c938 static int read_build_id(const char *filename, struct build_id *bid) in read_build_id() argument
940 size_t size = sizeof(bid->data); in read_build_id()
956 memcpy(bid->data, abfd->build_id->data, abfd->build_id->size); in read_build_id()
957 memset(bid->data + abfd->build_id->size, 0, size - abfd->build_id->size); in read_build_id()
958 err = bid->size = abfd->build_id->size; in read_build_id()
967 static int read_build_id(const char *filename, struct build_id *bid) in read_build_id() argument
969 size_t size = sizeof(bid->data); in read_build_id()
986 err = elf_read_build_id(elf, bid->data, size); in read_build_id()
988 bid->size = err; in read_build_id()
999 int filename__read_build_id(const char *filename, struct build_id *bid) in filename__read_build_id() argument
1032 sysfs__read_build_id(const char * filename,struct build_id * bid) sysfs__read_build_id() argument
1271 struct build_id bid; symsrc__init() local
[all...]
H A Ddso.h186 struct build_id bid; in DECLARE_RC_STRUCT() local
305 return &RC_CHK_ACCESS(dso)->bid; in dso__bid()
310 return &RC_CHK_ACCESS(dso)->bid; in dso__bid_const()
678 void dso__set_build_id(struct dso *dso, struct build_id *bid);
679 bool dso__build_id_equal(const struct dso *dso, struct build_id *bid);
H A Dsynthetic-events.c370 struct build_id bid; in perf_record_mmap2__read_build_id() local
378 rc = sysfs__read_build_id("/sys/kernel/notes", &bid); in perf_record_mmap2__read_build_id()
389 bid = *dso__bid(dso); in perf_record_mmap2__read_build_id()
397 rc = filename__read_build_id(event->filename, &bid) > 0 ? 0 : -1; in perf_record_mmap2__read_build_id()
404 memcpy(event->build_id, bid.data, sizeof(bid.data)); in perf_record_mmap2__read_build_id()
405 event->build_id_size = (u8) bid.size; in perf_record_mmap2__read_build_id()
411 dso__set_build_id(dso, &bid); in perf_record_mmap2__read_build_id()
2234 const struct build_id *bid, in perf_event__synthesize_build_id() argument
2245 ev.build_id.size = min(bid->size, sizeof(ev.build_id.build_id)); in perf_event__synthesize_build_id()
2246 memcpy(ev.build_id.build_id, bid->data, ev.build_id.size); in perf_event__synthesize_build_id()
[all …]
/linux/arch/x86/platform/uv/
H A Duv_time.c126 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
147 struct uv_rtc_timer_head *head = blade_info[bid]; in uv_rtc_allocate_timers()
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()
[all …]
/linux/drivers/usb/usbip/
H A Dstub_main.c68 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()
82 void put_busid_priv(struct bus_id_priv *bid) in put_busid_priv() argument
84 if (bid) in put_busid_priv()
85 spin_unlock(&bid->busid_lock); in put_busid_priv()
247 struct bus_id_priv *bid; in rebind_store() local
255 bid = get_busid_priv(buf); in rebind_store()
256 if (!bid) in rebind_store()
[all …]
/linux/tools/perf/
H A Dbuiltin-buildid-cache.c178 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
283 if (filename__read_build_id(filename, &bid) == -1) { in dso__missing_buildid_cache()
289 } else if (memcmp(dso__bid(dso)->data, bid.data, bid in dso__missing_buildid_cache()
306 struct build_id bid; build_id_cache__update_file() local
[all...]
/linux/arch/x86/include/asm/uv/
H A Duv_hub.h373 #define for_each_possible_blade(bid) \ argument
374 for ((bid) = 0; (bid) < uv_num_possible_blades(); (bid)++)
681 static inline int uv_blade_to_pnode(int bid) in uv_blade_to_pnode() argument
685 return s2p ? s2p[bid] : bid; in uv_blade_to_pnode()
689 static inline int uv_blade_to_memory_nid(int bid) in uv_blade_to_memory_nid() argument
691 return uv_hub_info_list(uv_blade_to_node(bid))->memory_nid; in uv_blade_to_memory_nid()
695 static inline int uv_blade_nr_possible_cpus(int bid) in uv_blade_nr_possible_cpus() argument
697 return uv_hub_info_list(uv_blade_to_node(bid))->nr_possible_cpus; in uv_blade_nr_possible_cpus()
701 static inline int uv_blade_nr_online_cpus(int bid) in uv_blade_nr_online_cpus() argument
703 return uv_hub_info_list(uv_blade_to_node(bid))->nr_online_cpus; in uv_blade_nr_online_cpus()
/linux/tools/perf/tests/
H A Dpe-file-parsing.c27 struct build_id bid; in run_dir() local
40 ret = filename__read_build_id(filename, &bid); in run_dir()
43 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir()
52 ret = filename__read_build_id(debugfile, &bid); in run_dir()
55 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir()
H A Dsdt.c31 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/
H A Ddb1200.c85 int bid; in db1200_detect_board() local
102 bid = BCSR_WHOAMI_BOARD(bcsr_read(BCSR_WHOAMI)); in db1200_detect_board()
103 if ((bid == BCSR_WHOAMI_PB1200_DDR1) || in db1200_detect_board()
104 (bid == BCSR_WHOAMI_PB1200_DDR2)) { in db1200_detect_board()
803 int swapped, bid; in db1200_dev_setup() local
806 bid = BCSR_WHOAMI_BOARD(bcsr_read(BCSR_WHOAMI)); in db1200_dev_setup()
807 if ((bid == BCSR_WHOAMI_PB1200_DDR1) || in db1200_dev_setup()
808 (bid == BCSR_WHOAMI_PB1200_DDR2)) { in db1200_dev_setup()
938 if ((bid == BCSR_WHOAMI_PB1200_DDR1) || in db1200_dev_setup()
939 (bid == BCSR_WHOAMI_PB1200_DDR2)) in db1200_dev_setup()
/linux/arch/x86/kernel/apic/
H A Dx2apic_uv_x.c1650 int bytes, cpu, nodeid, bid; in uv_system_init_hub() local
1707 for_each_possible_blade(bid) { in uv_system_init_hub()
1711 new_hub = (bid == 0) ? &uv_hub_info_node0 in uv_system_init_hub()
1712 : kzalloc_node(bytes, GFP_KERNEL, uv_blade_to_node(bid)); in uv_system_init_hub()
1715 while (--bid > 0) in uv_system_init_hub()
1716 kfree(uv_hub_info_list_blade[bid]); in uv_system_init_hub()
1721 uv_hub_info_list_blade[bid] = new_hub; in uv_system_init_hub()
1726 new_hub->pnode = uv_blade_to_pnode(bid); in uv_system_init_hub()
1730 new_hub->numa_blade_id = bid; in uv_system_init_hub()
1744 for_each_possible_blade(bid) in uv_system_init_hub()
[all …]
/linux/drivers/bluetooth/
H A Dbtqca.c210 static int qca_read_fw_board_id(struct hci_dev *hdev, u16 *bid) in qca_read_fw_board_id() argument
245 *bid = (edl->data[1] << 8) + edl->data[2]; in qca_read_fw_board_id()
246 bt_dev_dbg(hdev, "%s: bid = %x", __func__, *bid); in qca_read_fw_board_id()
704 struct qca_btsoc_version ver, u8 rom_ver, u16 bid) in qca_generate_hsp_nvm_name() argument
714 if (bid == 0x0) in qca_generate_hsp_nvm_name()
717 snprintf(fwname, max_size, "qca/hpnv%02x%s.%x", rom_ver, variant, bid); in qca_generate_hsp_nvm_name()
721 const char *stem, u8 rom_ver, u16 bid) in qca_get_nvm_name_generic() argument
723 if (bid == 0x0) in qca_get_nvm_name_generic()
725 else if (bid & 0xff00) in qca_get_nvm_name_generic()
727 "qca/%snv%02x.b%x", stem, rom_ver, bid); in qca_get_nvm_name_generic()
[all …]
/linux/io_uring/
H A Dkbuf.c31 __u16 bid; member
114 req->buf_index = kbuf->bid; in io_provided_buffer_select()
155 req->buf_index = buf->bid; in io_ring_buffer_select()
256 req->buf_index = buf->bid; in io_ring_buffers_peek()
496 p->bid = tmp; in io_provide_buffers_prep()
552 int i, bid = pbuf->bid; in io_add_buffers() local
563 buf->bid = bid; in io_add_buffers()
566 bid++; in io_add_buffers()
/linux/arch/powerpc/kvm/
H A Dbook3s_xive.h214 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()
/linux/drivers/pcmcia/
H A Ddb1xxx_ss.c428 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()

123