/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
D | 8250_mid.c | 53 static int pnw_setup(struct mid8250 *mid, struct uart_port *p) in pnw_setup() argument 59 mid->dma_index = 0; in pnw_setup() 62 mid->dma_index = 1; in pnw_setup() 65 mid->dma_index = 2; in pnw_setup() 71 mid->dma_dev = pci_get_slot(pdev->bus, in pnw_setup() 78 struct mid8250 *mid = p->private_data; in tng_handle_irq() local 85 chip = pci_get_drvdata(mid->dma_dev); in tng_handle_irq() 88 err = hsu_dma_get_status(chip, mid->dma_index * 2 + 1, &status); in tng_handle_irq() 93 ret |= hsu_dma_do_irq(chip, mid->dma_index * 2 + 1, status); in tng_handle_irq() 96 err = hsu_dma_get_status(chip, mid->dma_index * 2, &status); in tng_handle_irq() [all …]
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
D | core_mcpcia.c | 91 unsigned long mid = MCPCIA_HOSE2MID(hose->index); in conf_read() local 99 addr, type1, mid)); in conf_read() 102 stat0 = *(vuip)MCPCIA_CAP_ERR(mid); in conf_read() 103 *(vuip)MCPCIA_CAP_ERR(mid) = stat0; in conf_read() 105 *(vuip)MCPCIA_CAP_ERR(mid); in conf_read() 106 DBG_CFG(("conf_read: MCPCIA_CAP_ERR(%d) was 0x%x\n", mid, stat0)); in conf_read() 112 mcheck_extra(cpu) = mid; in conf_read() 139 unsigned long mid = MCPCIA_HOSE2MID(hose->index); in conf_write() local 147 stat0 = *(vuip)MCPCIA_CAP_ERR(mid); in conf_write() 148 *(vuip)MCPCIA_CAP_ERR(mid) = stat0; mb(); in conf_write() [all …]
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | intel-mid_wdt.c | 43 wdt_command(struct mid_wdt *mid, int sub, const void *in, size_t inlen, size_t size) in wdt_command() argument 45 struct intel_scu_ipc_dev *scu = mid->scu; in wdt_command() 53 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_start() local 69 ret = wdt_command(mid, SCU_WATCHDOG_START, &ipc_wd_start, in wdt_start() 72 dev_crit(mid->dev, "error starting watchdog: %d\n", ret); in wdt_start() 79 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_ping() local 82 ret = wdt_command(mid, SCU_WATCHDOG_KEEPALIVE, NULL, 0, 0); in wdt_ping() 84 dev_crit(mid->dev, "Error executing keepalive: %d\n", ret); in wdt_ping() 91 struct mid_wdt *mid = watchdog_get_drvdata(wd); in wdt_stop() local 94 ret = wdt_command(mid, SCU_WATCHDOG_STOP, NULL, 0, 0); in wdt_stop() [all …]
|
/kernel/linux/linux-5.10/net/sctp/ |
D | stream_interleave.c | 63 __u32 mid; in sctp_chunk_assign_mid() local 75 mid = lchunk->chunk_hdr->flags & SCTP_DATA_LAST_FRAG ? in sctp_chunk_assign_mid() 79 mid = lchunk->chunk_hdr->flags & SCTP_DATA_LAST_FRAG ? in sctp_chunk_assign_mid() 83 hdr->mid = htonl(mid); in sctp_chunk_assign_mid() 108 __u32 mid; in sctp_validate_idata() local 119 mid = ntohl(chunk->subh.idata_hdr->mid); in sctp_validate_idata() 121 return !MID_lt(mid, sctp_mid_peek(stream, in, sid)); in sctp_validate_idata() 139 event->mid == cevent->mid && in sctp_intl_store_reasm() 148 MID_lt(cevent->mid, event->mid)) || in sctp_intl_store_reasm() 160 MID_lt(event->mid, cevent->mid))) { in sctp_intl_store_reasm() [all …]
|
/kernel/linux/linux-5.10/drivers/ide/ |
D | ide-cd_verbose.c | 281 int lo = 0, mid, hi = ARRAY_SIZE(sense_data_texts); in ide_cd_log_error() local 290 mid = (lo + hi) / 2; in ide_cd_log_error() 291 if (sense_data_texts[mid].asc_ascq == key || in ide_cd_log_error() 292 sense_data_texts[mid].asc_ascq == (0xff0000|key)) { in ide_cd_log_error() 293 s = sense_data_texts[mid].text; in ide_cd_log_error() 295 } else if (sense_data_texts[mid].asc_ascq > key) in ide_cd_log_error() 296 hi = mid; in ide_cd_log_error() 298 lo = mid + 1; in ide_cd_log_error() 313 int lo = 0, mid, hi = ARRAY_SIZE(packet_command_texts); in ide_cd_log_error() local 317 mid = (lo + hi) / 2; in ide_cd_log_error() [all …]
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
D | devices.c | 36 phandle *prom_node, int *mid) in check_cpu_node() argument 41 if (mid) { in check_cpu_node() 42 *mid = prom_getintdefault(nd, cpu_mid_prop(), 0); in check_cpu_node() 44 *mid &= 3; in check_cpu_node() 55 void *compare_arg, phandle *prom_node, int *mid) in __cpu_find_by() argument 64 prom_node, mid); in __cpu_find_by() 83 int cpu_find_by_instance(int instance, phandle *prom_node, int *mid) in cpu_find_by_instance() argument 86 prom_node, mid); in cpu_find_by_instance() 101 int cpu_find_by_mid(int mid, phandle *prom_node) in cpu_find_by_mid() argument 103 return __cpu_find_by(cpu_mid_compare, (void *)mid, in cpu_find_by_mid()
|
D | smp_32.c | 59 int mid; in smp_store_cpu_info() local 67 mid = cpu_get_hwmid(cpu_node); in smp_store_cpu_info() 69 if (mid < 0) { in smp_store_cpu_info() 71 mid = 0; in smp_store_cpu_info() 73 cpu_data(id).mid = mid; in smp_store_cpu_info() 230 int instance, mid; in smp_setup_cpu_possible_map() local 233 while (!cpu_find_by_instance(instance, NULL, &mid)) { in smp_setup_cpu_possible_map() 234 if (mid < NR_CPUS) { in smp_setup_cpu_possible_map() 235 set_cpu_possible(mid, true); in smp_setup_cpu_possible_map() 236 set_cpu_present(mid, true); in smp_setup_cpu_possible_map()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | transport.c | 48 cifs_wake_up_task(struct mid_q_entry *mid) in cifs_wake_up_task() argument 50 wake_up_process(mid->callback_data); in cifs_wake_up_task() 66 temp->mid = get_mid(smb_buffer); in AllocMidQEntry() 151 trace_smb3_slow_rsp(smb_cmd, midEntry->mid, midEntry->pid, in _cifs_mid_q_entry_release() 155 midEntry->command, midEntry->mid); in _cifs_mid_q_entry_release() 181 cifs_delete_mid(struct mid_q_entry *mid) in cifs_delete_mid() argument 184 if (!(mid->mid_flags & MID_DELETED)) { in cifs_delete_mid() 185 list_del_init(&mid->qhead); in cifs_delete_mid() 186 mid->mid_flags |= MID_DELETED; in cifs_delete_mid() 190 DeleteMidQEntry(mid); in cifs_delete_mid() [all …]
|
D | smb2transport.c | 720 temp->mid = le64_to_cpu(shdr->MessageId); in smb2_mid_entry_alloc() 739 le16_to_cpu(shdr->Command), temp->mid); in smb2_mid_entry_alloc() 745 struct smb2_sync_hdr *shdr, struct mid_q_entry **mid) in smb2_get_mid_entry() argument 772 *mid = smb2_mid_entry_alloc(shdr, server); in smb2_get_mid_entry() 773 if (*mid == NULL) in smb2_get_mid_entry() 776 list_add_tail(&(*mid)->qhead, &server->pending_mid_q); in smb2_get_mid_entry() 783 smb2_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, in smb2_check_receive() argument 786 unsigned int len = mid->resp_buf_size; in smb2_check_receive() 791 iov[0].iov_base = (char *)mid->resp_buf; in smb2_check_receive() 794 dump_smb(mid->resp_buf, min_t(u32, 80, len)); in smb2_check_receive() [all …]
|
/kernel/linux/linux-5.10/arch/hexagon/lib/ |
D | checksum.c | 88 int i, start, mid, end, mask; in do_csum() local 100 mid = len - start; in do_csum() 101 end = mid & 0xF; in do_csum() 102 mid = mid>>4; in do_csum() 103 sum0 = mid << 18; in do_csum() 128 if (mid) { in do_csum() 131 if (mid > 1) in do_csum() 132 for (i = 0; i < mid-1; i++) { in do_csum() 148 ptr4 = (unsigned int *) &ptr[start + (mid * 16) + (end & 8)]; in do_csum() 155 ptr2 = (unsigned short *) &ptr[start + (mid * 16) + (end & 12)]; in do_csum() [all …]
|
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/ |
D | ucd9200.c | 78 const struct i2c_device_id *mid; in ucd9200_probe() local 96 for (mid = ucd9200_id; mid->name[0]; mid++) { in ucd9200_probe() 97 if (!strncasecmp(mid->name, block_buffer, strlen(mid->name))) in ucd9200_probe() 100 if (!mid->name[0]) { in ucd9200_probe() 108 chip = mid->driver_data; in ucd9200_probe() 110 if (chip != ucd9200 && strcmp(client->name, mid->name) != 0) in ucd9200_probe() 113 client->name, mid->name); in ucd9200_probe() 191 if (mid->driver_data == ucd9240) in ucd9200_probe()
|
D | ucd9000.c | 319 const struct i2c_device_id *mid, in ucd9000_probe_gpio() argument 324 switch (mid->driver_data) { in ucd9000_probe_gpio() 364 const struct i2c_device_id *mid, in ucd9000_probe_gpio() argument 432 const struct i2c_device_id *mid, in ucd9000_init_debugfs() argument 454 if (mid->driver_data == ucd9090 || mid->driver_data == ucd90160 || in ucd9000_init_debugfs() 455 mid->driver_data == ucd90320 || mid->driver_data == ucd90910) { in ucd9000_init_debugfs() 456 gpi_count = mid->driver_data == ucd90320 ? UCD90320_GPI_COUNT in ucd9000_init_debugfs() 483 const struct i2c_device_id *mid, in ucd9000_init_debugfs() argument 495 const struct i2c_device_id *mid; in ucd9000_probe() local 513 for (mid = ucd9000_id; mid->name[0]; mid++) { in ucd9000_probe() [all …]
|
D | zl6100.c | 310 const struct i2c_device_id *mid; in zl6100_probe() local 326 mid = NULL; in zl6100_probe() 327 for (mid = zl6100_id; mid->name[0]; mid++) { in zl6100_probe() 328 if (!strncasecmp(mid->name, device_id, strlen(mid->name))) in zl6100_probe() 331 if (!mid->name[0]) { in zl6100_probe() 335 if (strcmp(client->name, mid->name) != 0) in zl6100_probe() 338 client->name, mid->name); in zl6100_probe() 345 data->id = mid->driver_data; in zl6100_probe()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/ |
D | netdev.c | 147 txdata->mid >= GET_MAX_VIFS(wil)) in wil6210_netdev_poll_tx() 150 vif = wil->vifs[txdata->mid]; in wil6210_netdev_poll_tx() 152 wil_dbg_txrx(wil, "Invalid MID %d\n", txdata->mid); in wil6210_netdev_poll_tx() 304 u8 mid; in wil_vif_alloc() local 306 mid = wil_vif_find_free_mid(wil); in wil_vif_alloc() 307 if (mid == U8_MAX) { in wil_vif_alloc() 318 if (mid == 0) { in wil_vif_alloc() 328 vif->mid = mid; in wil_vif_alloc() 416 if (wil->vifs[vif->mid]) { in wil_vif_add() 418 vif->mid); in wil_vif_add() [all …]
|
D | wmi.c | 633 static int __wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid, in __wmi_send() argument 646 .mid = mid, in __wmi_send() 731 cmdid2name(cmdid), cmdid, len, mid); in __wmi_send() 755 int wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len) in wmi_send() argument 760 rc = __wmi_send(wil, cmdid, mid, buf, len); in wmi_send() 860 data->info.qid, data->info.mid, data->info.cid); in wmi_evt_rx_mgmt() 939 if (vif->mid == 0) in wmi_evt_scan_complete() 1039 wil->sta[evt->cid].mid = vif->mid; in wmi_evt_connect() 1115 wil->sta[evt->cid].mid = U8_MAX; in wmi_evt_connect() 1179 evt->src_mac, vif->mid); in wmi_evt_eapol_rx() [all …]
|
/kernel/linux/linux-5.10/fs/erofs/ |
D | namei.c | 61 const int mid = head + (back - head) / 2; in find_target_dirent() local 62 const int nameoff = nameoff_from_disk(de[mid].nameoff, in find_target_dirent() 67 .end = mid >= ndirents - 1 ? in find_target_dirent() 69 data + nameoff_from_disk(de[mid + 1].nameoff, in find_target_dirent() 77 return de + mid; in find_target_dirent() 79 head = mid + 1; in find_target_dirent() 82 back = mid - 1; in find_target_dirent() 104 const int mid = head + (back - head) / 2; in find_target_block_classic() local 105 struct page *page = read_mapping_page(mapping, mid, NULL); in find_target_block_classic() 121 mid, EROFS_I(dir)->nid); in find_target_block_classic() [all …]
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_dir2_block.c | 371 int mid=0; /* midpoint for binary srch */ in xfs_dir2_block_addname() local 453 mid = (low + high) >> 1; in xfs_dir2_block_addname() 454 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname() 457 low = mid + 1; in xfs_dir2_block_addname() 459 high = mid - 1; in xfs_dir2_block_addname() 461 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname() 462 mid--; in xfs_dir2_block_addname() 499 mid++; in xfs_dir2_block_addname() 500 if (mid) in xfs_dir2_block_addname() 501 memmove(blp, &blp[1], mid * sizeof(*blp)); in xfs_dir2_block_addname() [all …]
|
/kernel/uniproton/src/core/kernel/timer/ |
D | prt_timer_minor.c | 22 OS_SEC_L2_TEXT U32 PRT_TimerStart(U32 mid, TimerHandle tmrHandle) in PRT_TimerStart() argument 27 (void)mid; in PRT_TimerStart() 51 OS_SEC_L2_TEXT U32 PRT_TimerStop(U32 mid, TimerHandle tmrHandle) in PRT_TimerStop() argument 56 (void)mid; in PRT_TimerStop() 80 OS_SEC_L2_TEXT U32 PRT_TimerQuery(U32 mid, TimerHandle tmrHandle, U32 *expireTime) in PRT_TimerQuery() argument 84 (void)mid; in PRT_TimerQuery()
|
/kernel/linux/linux-5.10/drivers/thermal/ |
D | rockchip_thermal.c | 480 int high, low, mid; in rk_tsadcv2_temp_to_code() local 487 mid = (high + low) / 2; in rk_tsadcv2_temp_to_code() 494 if (temp == table->id[mid].temp) in rk_tsadcv2_temp_to_code() 495 return table->id[mid].code; in rk_tsadcv2_temp_to_code() 496 else if (temp < table->id[mid].temp) in rk_tsadcv2_temp_to_code() 497 high = mid - 1; in rk_tsadcv2_temp_to_code() 499 low = mid + 1; in rk_tsadcv2_temp_to_code() 500 mid = (low + high) / 2; in rk_tsadcv2_temp_to_code() 509 num = abs(table->id[mid + 1].code - table->id[mid].code); in rk_tsadcv2_temp_to_code() 510 num *= temp - table->id[mid].temp; in rk_tsadcv2_temp_to_code() [all …]
|
/kernel/uniproton/src/include/uapi/ |
D | prt_errno.h | 72 #define OS_ERRNO_BUILD_FATAL(mid, errno) (ERRTYPE_FATAL | ERRNO_OS_ID | ((U32)(mid) << 8) | (errno)) argument 89 #define OS_ERRNO_BUILD_ERROR(mid, errno) (ERRTYPE_ERROR | ERRNO_OS_ID | ((U32)(mid) << 8) | (errno)) argument
|
D | prt_timer.h | 340 extern U32 PRT_TimerDelete(U32 mid, TimerHandle tmrHandle); 366 extern U32 PRT_TimerStart(U32 mid, TimerHandle tmrHandle); 393 extern U32 PRT_TimerStop(U32 mid, TimerHandle tmrHandle); 415 extern U32 PRT_TimerRestart(U32 mid, TimerHandle tmrHandle); 441 extern U32 PRT_TimerQuery(U32 mid, TimerHandle tmrHandle, U32 *expireTime);
|
/kernel/uniproton/src/mem/ |
D | prt_mem.c | 17 OS_SEC_TEXT void *PRT_MemAlloc(U32 mid, U8 ptNo, U32 size) in PRT_MemAlloc() argument 25 addr = g_memArithAPI.alloc(mid, size); in PRT_MemAlloc() 31 OS_SEC_TEXT U32 PRT_MemFree(U32 mid, void *addr) in PRT_MemFree() argument 36 (void)mid; in PRT_MemFree()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_switchdev.c | 865 struct mlxsw_sp_mid *mid; in mlxsw_sp_bridge_mrouter_update_mdb() local 867 list_for_each_entry(mid, &bridge_device->mids_list, list) in mlxsw_sp_bridge_mrouter_update_mdb() 868 mlxsw_sp_smid_router_port_set(mlxsw_sp, mid->mid, add); in mlxsw_sp_bridge_mrouter_update_mdb() 1523 struct mlxsw_sp_mid *mid; in __mlxsw_sp_mc_get() local 1525 list_for_each_entry(mid, &bridge_device->mids_list, list) { in __mlxsw_sp_mc_get() 1526 if (ether_addr_equal(mid->addr, addr) && mid->fid == fid) in __mlxsw_sp_mc_get() 1527 return mid; in __mlxsw_sp_mc_get() 1575 struct mlxsw_sp_mid *mid, in mlxsw_sp_mc_write_mdb_entry() argument 1595 bitmap_copy(flood_bitmap, mid->ports_in_mid, num_of_ports); in mlxsw_sp_mc_write_mdb_entry() 1598 mid->mid = mid_idx; in mlxsw_sp_mc_write_mdb_entry() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/bfa/ |
D | bfa_plog.h | 34 u8 mid; /* module id */ member 137 void bfa_plog_str(struct bfa_plog_s *plog, enum bfa_plog_mid mid, 139 void bfa_plog_intarr(struct bfa_plog_s *plog, enum bfa_plog_mid mid, 142 void bfa_plog_fchdr(struct bfa_plog_s *plog, enum bfa_plog_mid mid, 144 void bfa_plog_fchdr_and_pl(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 61 size_t mid = start + (end - start) / 2; in ksym_search() local 63 result = key - syms[mid].addr; in ksym_search() 65 end = mid; in ksym_search() 67 start = mid + 1; in ksym_search() 69 return &syms[mid]; in ksym_search()
|