/linux-6.6.21/drivers/usb/host/ |
D | octeon-hcd.h | 54 #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-6.6.21/drivers/s390/char/ |
D | tape_34xx.c | 47 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-6.6.21/drivers/misc/sgi-gru/ |
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() 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 …]
|
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 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() 393 int cbrnum, bid; in gru_get_cb_exception_detail() local 400 for_each_possible_blade(bid) { in gru_get_cb_exception_detail() [all …]
|
/linux-6.6.21/tools/perf/util/ |
D | symbol-minimal.c | 34 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() 212 ret = read_build_id(buf, buf_size, bid, need_swap); in filename__read_build_id() 214 ret = bid->size; in filename__read_build_id() [all …]
|
D | build-id.c | 104 char *bid = bf; in build_id__sprintf() local 111 sprintf(bid, "%02x", *raw); in build_id__sprintf() 113 bid += 2; in build_id__sprintf() 116 return (bid - bf) + 1; in build_id__sprintf() 122 struct build_id bid; in sysfs__sprintf_build_id() local 130 ret = sysfs__read_build_id(notes, &bid); in sysfs__sprintf_build_id() 134 return build_id__sprintf(&bid, sbuild_id); in sysfs__sprintf_build_id() 139 struct build_id bid; in filename__sprintf_build_id() local 142 ret = filename__read_build_id(pathname, &bid); in filename__sprintf_build_id() 146 return build_id__sprintf(&bid, sbuild_id); in filename__sprintf_build_id() [all …]
|
D | dso.c | 211 build_id__sprintf(&dso->bid, build_id_hex); in dso__read_binary_type_filename() 1404 void dso__set_build_id(struct dso *dso, struct build_id *bid) in dso__set_build_id() argument 1406 dso->bid = *bid; in dso__set_build_id() 1410 bool dso__build_id_equal(const struct dso *dso, struct build_id *bid) in dso__build_id_equal() argument 1412 if (dso->bid.size > bid->size && dso->bid.size == BUILD_ID_SIZE) { in dso__build_id_equal() 1417 return !memcmp(dso->bid.data, bid->data, bid->size) && in dso__build_id_equal() 1418 !memchr_inv(&dso->bid.data[bid->size], 0, in dso__build_id_equal() 1419 dso->bid.size - bid->size); in dso__build_id_equal() 1422 return dso->bid.size == bid->size && in dso__build_id_equal() 1423 memcmp(dso->bid.data, bid->data, dso->bid.size) == 0; in dso__build_id_equal() [all …]
|
D | print-events.c | 183 char *bid = strchr(sdt_name->s, '@'); in print_sdt_events() local 186 if (bid) in print_sdt_events() 187 *(bid++) = '\0'; in print_sdt_events() 207 char *path = build_id_cache__origname(bid); in print_sdt_events() 210 if (asprintf(&evt_name, "%s@%s(%.12s)", sdt_name->s, path, bid) < 0) in print_sdt_events()
|
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);
|
D | map.c | 120 u32 prot, u32 flags, struct build_id *bid, in map__new() argument 190 if (build_id__is_defined(bid)) { in map__new() 191 dso__set_build_id(dso, bid); in map__new() 203 dso__set_build_id(dso, &header_bid_dso->bid); in map__new() 358 build_id__sprintf(&dso->bid, sbuild_id); in map__load()
|
D | dsos.c | 90 if (filename__read_build_id(pos->long_name, &pos->bid) > 0) { in __dsos__read_build_ids() 97 &pos->bid) > 0) { in __dsos__read_build_ids() 317 build_id__sprintf(&pos->bid, sbuild_id); in __dsos__fprintf_buildid()
|
D | dso.h | 182 struct build_id bid; member 276 void dso__set_build_id(struct dso *dso, struct build_id *bid); 277 bool dso__build_id_equal(const struct dso *dso, struct build_id *bid);
|
/linux-6.6.21/arch/x86/platform/uv/ |
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 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-6.6.21/drivers/usb/usbip/ |
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() 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-6.6.21/tools/perf/ |
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 281 filename__read_build_id(filename, &bid) == -1) { in dso__missing_buildid_cache() 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 [all …]
|
/linux-6.6.21/arch/x86/include/asm/uv/ |
D | uv_hub.h | 373 #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-6.6.21/tools/perf/tests/ |
D | pe-file-parsing.c | 27 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()
|
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-6.6.21/arch/mips/alchemy/devboards/ |
D | db1200.c | 85 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-6.6.21/arch/ia64/include/asm/uv/ |
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-6.6.21/arch/x86/kernel/apic/ |
D | x2apic_uv_x.c | 1702 int bytes, cpu, nodeid, bid; in uv_system_init_hub() local 1759 for_each_possible_blade(bid) { in uv_system_init_hub() 1763 new_hub = (bid == 0) ? &uv_hub_info_node0 in uv_system_init_hub() 1764 : kzalloc_node(bytes, GFP_KERNEL, uv_blade_to_node(bid)); in uv_system_init_hub() 1767 while (--bid > 0) in uv_system_init_hub() 1768 kfree(uv_hub_info_list_blade[bid]); in uv_system_init_hub() 1773 uv_hub_info_list_blade[bid] = new_hub; in uv_system_init_hub() 1778 new_hub->pnode = uv_blade_to_pnode(bid); in uv_system_init_hub() 1782 new_hub->numa_blade_id = bid; in uv_system_init_hub() 1796 for_each_possible_blade(bid) in uv_system_init_hub() [all …]
|
/linux-6.6.21/io_uring/ |
D | kbuf.c | 31 __u16 bid; member 148 req->buf_index = kbuf->bid; in io_provided_buffer_select() 179 req->buf_index = buf->bid; in io_ring_buffer_select() 406 p->bid = tmp; in io_provide_buffers_prep() 458 int i, bid = pbuf->bid; in io_add_buffers() local 469 buf->bid = bid; in io_add_buffers() 472 bid++; in io_add_buffers()
|
/linux-6.6.21/Documentation/devicetree/bindings/nvmem/ |
D | amlogic,meson-gxbb-efuse.yaml | 54 bid: bid@46 {
|
/linux-6.6.21/arch/powerpc/kvm/ |
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()
|
/linux-6.6.21/drivers/pcmcia/ |
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()
|