/openbmc/linux/drivers/tty/serial/8250/ |
H A D | 8250_mid.c | 26 /* Intel MID Specific registers */ 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() 76 static void pnw_exit(struct mid8250 *mid) in pnw_exit() argument 78 pci_dev_put(mid->dma_dev); in pnw_exit() 83 struct mid8250 *mid = p->private_data; in tng_handle_irq() local 90 chip = pci_get_drvdata(mid->dma_dev); in tng_handle_irq() [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | intel-mid_wdt.c | 3 * intel-mid_wdt: generic Intel MID SCU watchdog driver 20 #include <asm/intel-mid.h> 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() [all …]
|
/openbmc/linux/net/sctp/ |
H A 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 …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 274 | 36 '-F', iotests.imgfmt, mid, str(size_short)) 37 iotests.qemu_img_create('-f', iotests.imgfmt, '-b', mid, 46 vm.add_blockdev('file,filename=%s,node-name=mid-file' % mid) 47 vm.add_blockdev('%s,file=mid-file,node-name=mid,backing=base' 49 vm.add_drive(top, 'backing=mid,node-name=top') 53 iotests.FilePath('mid') as mid, \ 73 mid) 83 iotests.qemu_img_log('map', '--output=json', mid) 84 iotests.qemu_img_log('map', '--output=human', mid) 88 iotests.log('=== Testing qemu-img commit (top -> mid) ===') [all …]
|
H A D | 191 | 32 _rm_test_img "${TEST_IMG}.mid" 57 TEST_IMG="${TEST_IMG}.mid" _make_test_img -o "backing_fmt=$IMGFMT" -b "${TEST_IMG}.base" 58 _make_test_img -b "${TEST_IMG}.mid" -F $IMGFMT 59 TEST_IMG="${TEST_IMG}.ovl2" _make_test_img -b "${TEST_IMG}.mid" -F $IMGFMT 61 $QEMU_IO -c 'write -P 0x55 1M 64k' "${TEST_IMG}.mid" | _filter_qemu_io 68 …-blockdev "driver=${IMGFMT},file.driver=file,file.filename=${TEST_IMG}.mid,node-name=mid,backing=b… 69 …-blockdev "driver=${IMGFMT},file.driver=file,file.filename=${TEST_IMG},node-name=top,backing=mid" \ 70 …ckdev "driver=${IMGFMT},file.driver=file,file.filename=${TEST_IMG}.ovl2,node-name=top2,backing=mid" 83 'top': '$TEST_IMG.mid' } }" \ 106 TEST_IMG="${TEST_IMG}.mid" _make_test_img -b "${TEST_IMG}.base" -F $IMGFMT [all …]
|
H A D | 273.out | 3 Formatting 'TEST_DIR/t.IMGFMT.mid', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base ba… 4 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.mid backing… 5 …kdev file,node-name=midf,filename=TEST_DIR/t.IMGFMT.mid -blockdev {"driver":"IMGFMT","node-name":"… 37 "filename": "TEST_DIR/t.IMGFMT.mid", 51 "full-backing-filename": "TEST_DIR/t.IMGFMT.mid", 52 "backing-filename": "TEST_DIR/t.IMGFMT.mid", 63 "backing_file": "TEST_DIR/t.IMGFMT.mid", 115 "filename": "TEST_DIR/t.IMGFMT.mid", 125 "node-name": "mid", 140 "file": "TEST_DIR/t.IMGFMT.mid" [all …]
|
H A D | 195 | 33 _rm_test_img "$TEST_IMG.mid" 60 TEST_IMG="$TEST_IMG.mid" _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 61 _make_test_img -b "$TEST_IMG.mid" -F $IMGFMT 64 echo "Change backing file of mid (opened read-only)" 67 run_qemu -drive if=none,file="$TEST_IMG",backing.node-name=mid <<EOF 69 {"execute":"change-backing-file", "arguments":{"device":"none0","image-node-name":"mid","backing-fi… 73 TEST_IMG="$TEST_IMG.mid" _img_info 79 TEST_IMG="$TEST_IMG.mid" _make_test_img -b "$TEST_IMG.base" -F $IMGFMT
|
H A D | 279.out | 3 Formatting 'TEST_DIR/t.IMGFMT.mid', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base ba… 4 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.mid backing… 10 backing file: TEST_DIR/t.IMGFMT.mid 12 image: TEST_DIR/t.IMGFMT.mid 25 backing file: TEST_DIR/t.IMGFMT.mid 27 image: TEST_DIR/t.IMGFMT.mid
|
H A D | 195.out | 3 Formatting 'TEST_DIR/t.IMGFMT.mid', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base ba… 4 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.mid backing… 6 Change backing file of mid (opened read-only) 8 Testing: -drive if=none,file=TEST_DIR/t.IMGFMT,backing.node-name=mid 36 image: TEST_DIR/t.IMGFMT.mid 45 Formatting 'TEST_DIR/t.IMGFMT.mid', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base ba…
|
/openbmc/linux/arch/alpha/kernel/ |
H A 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 …]
|
/openbmc/linux/fs/smb/client/ |
H A D | transport.c | 36 cifs_wake_up_task(struct mid_q_entry *mid) in cifs_wake_up_task() argument 38 if (mid->mid_state == MID_RESPONSE_RECEIVED) in cifs_wake_up_task() 39 mid->mid_state = MID_RESPONSE_READY; in cifs_wake_up_task() 40 wake_up_process(mid->callback_data); in cifs_wake_up_task() 56 temp->mid = get_mid(smb_buffer); in alloc_mid() 61 /* when mid allocated can be before when sent */ in alloc_mid() 66 * The default is for the mid to be synchronous, so the in alloc_mid() 106 cifs_server_dbg(VFS, "Invalid mid allocation time\n"); in __release_mid() 142 trace_smb3_slow_rsp(smb_cmd, midEntry->mid, midEntry->pid, in __release_mid() 145 pr_debug("slow rsp: cmd %d mid %llu", in __release_mid() [all …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | devices.c | 31 return "mid"; in cpu_mid_prop() 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 [all …]
|
H A 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() 70 printk(KERN_NOTICE "No MID found for CPU%d at node 0x%08x", id, cpu_node); in smp_store_cpu_info() 71 mid = 0; in smp_store_cpu_info() 73 cpu_data(id).mid = mid; in smp_store_cpu_info() 225 int instance, mid; in smp_setup_cpu_possible_map() local 228 while (!cpu_find_by_instance(instance, NULL, &mid)) { in smp_setup_cpu_possible_map() 229 if (mid < NR_CPUS) { in smp_setup_cpu_possible_map() 230 set_cpu_possible(mid, true); in smp_setup_cpu_possible_map() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/wil6210/ |
H A 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() 417 dev_err(&ndev->dev, "VIF with mid %d already in use\n", in wil_vif_add() [all …]
|
H A D | trace.h | 35 __field(u8, mid) 43 __entry->mid = wmi->mid; 51 "MID %d id 0x%04x len %d timestamp %d", 52 __entry->mid, __entry->command_id, __entry->buf_len, 152 __field(u8, mid) 163 __entry->mid = wil_rxdesc_mid(d); 171 TP_printk("index %d len %d mid %d cid (%%8) %d tid %d mcs %d seq 0x%03x" 173 __entry->mid, __entry->cid, __entry->tid, __entry->mcs, 184 __field(u8, mid) 195 __entry->mid = wil_rx_status_get_mid(msg); [all …]
|
H A 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() 730 wil_dbg_wmi(wil, "sending %s (0x%04x) [%d] mid %d\n", 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() 774 wil_info(wil, "FW ver. %s(SW %d); MAC %pM; %d MID's\n", in wmi_evt_ready() 859 wil_dbg_wmi(wil, "qid %d mid %d cid %d\n", in wmi_evt_rx_mgmt() 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() [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/python/python3-hypothesis/ |
H A D | test_binary_search.py | 57 mid = (lo + hi) // 2 58 if v > ls[mid]: 59 # Inserting v anywhere below mid would result in an unsorted list 60 # because it's > the value at mid. Therefore mid is a valid new lo 61 lo = mid 64 # elif v == ls[mid]: 65 # return mid 67 # Either v == ls[mid] in which case mid is a valid insertion point 68 # or v < ls[mid], in which case all valid insertion points must be 69 # < hi. Either way, mid is a valid new hi. [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_pgt.c | 123 mlxsw_sp_pgt_entry_create(struct mlxsw_sp_pgt *pgt, u16 mid, u16 smpe) in mlxsw_sp_pgt_entry_create() argument 133 ret = idr_replace(&pgt->pgt_idr, pgt_entry, mid); in mlxsw_sp_pgt_entry_create() 140 pgt_entry->index = mid; in mlxsw_sp_pgt_entry_create() 162 mlxsw_sp_pgt_entry_get(struct mlxsw_sp_pgt *pgt, u16 mid, u16 smpe) in mlxsw_sp_pgt_entry_get() argument 166 pgt_entry = idr_find(&pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_get() 170 return mlxsw_sp_pgt_entry_create(pgt, mid, smpe); in mlxsw_sp_pgt_entry_get() 173 static void mlxsw_sp_pgt_entry_put(struct mlxsw_sp_pgt *pgt, u16 mid) in mlxsw_sp_pgt_entry_put() argument 177 pgt_entry = idr_find(&pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_put() 255 static int mlxsw_sp_pgt_entry_port_add(struct mlxsw_sp *mlxsw_sp, u16 mid, in mlxsw_sp_pgt_entry_port_add() argument 264 pgt_entry = mlxsw_sp_pgt_entry_get(mlxsw_sp->pgt, mid, smpe); in mlxsw_sp_pgt_entry_port_add() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | renesas,rz-ssi.yaml | 62 The second cell specifies the encoded MID/RID values of the SSI port 65 bits[0:9] - Specifies MID/RID value of a SSI channel as below 66 MID/RID value of SSI rx0 = 0x256 67 MID/RID value of SSI tx0 = 0x255 68 MID/RID value of SSI rx1 = 0x25a 69 MID/RID value of SSI tx1 = 0x259 70 MID/RID value of SSI rt2 = 0x25f 71 MID/RID value of SSI rx3 = 0x262 72 MID/RID value of SSI tx3 = 0x261
|
/openbmc/linux/fs/erofs/ |
H A D | namei.c | 60 const int mid = head + (back - head) / 2; in find_target_dirent() local 61 const int nameoff = nameoff_from_disk(de[mid].nameoff, in find_target_dirent() 66 .end = mid >= ndirents - 1 ? in find_target_dirent() 68 data + nameoff_from_disk(de[mid + 1].nameoff, in find_target_dirent() 76 return de + mid; in find_target_dirent() 78 head = mid + 1; in find_target_dirent() 81 back = mid - 1; in find_target_dirent() 98 const int mid = head + (back - head) / 2; in erofs_find_target_block() local 103 de = erofs_bread(&buf, mid, EROFS_KMAP); in erofs_find_target_block() 115 mid, EROFS_I(dir)->nid); in erofs_find_target_block() [all …]
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A 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()
|
H A D | ucd9000.c | 389 const struct i2c_device_id *mid, in ucd9000_probe_gpio() argument 394 switch (mid->driver_data) { in ucd9000_probe_gpio() 434 const struct i2c_device_id *mid, in ucd9000_probe_gpio() argument 502 const struct i2c_device_id *mid, in ucd9000_init_debugfs() argument 522 if (mid->driver_data == ucd9090 || mid->driver_data == ucd90160 || in ucd9000_init_debugfs() 523 mid->driver_data == ucd90320 || mid->driver_data == ucd90910) { in ucd9000_init_debugfs() 524 gpi_count = mid->driver_data == ucd90320 ? UCD90320_GPI_COUNT in ucd9000_init_debugfs() 551 const struct i2c_device_id *mid, in ucd9000_init_debugfs() argument 563 const struct i2c_device_id *mid; in ucd9000_probe() local 581 for (mid = ucd9000_id; mid->name[0]; mid++) { in ucd9000_probe() [all …]
|
H A D | pim4328.c | 137 const struct i2c_device_id *mid; in pim4328_probe() local 158 for (mid = pim4328_id; mid->name[0]; mid++) { in pim4328_probe() 159 if (!strncasecmp(mid->name, device_id, strlen(mid->name))) in pim4328_probe() 162 if (!mid->name[0]) { in pim4328_probe() 167 if (strcmp(client->name, mid->name)) in pim4328_probe() 170 client->name, mid->name); in pim4328_probe() 172 data->id = mid->driver_data; in pim4328_probe()
|
/openbmc/linux/arch/hexagon/lib/ |
H A 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 …]
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_dir2_block.c | 296 * XXX should be the one closest to mid but mid is not yet computed. 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() [all …]
|