| /linux/drivers/tty/serial/8250/ | 
| H A D | 8250_mid.c | 25 /* Intel MID Specific registers */52 static int pnw_setup(struct mid8250 *mid, struct uart_port *p)  in pnw_setup()  argument
 58 		mid->dma_index = 0;  in pnw_setup()
 61 		mid->dma_index = 1;  in pnw_setup()
 64 		mid->dma_index = 2;  in pnw_setup()
 70 	mid->dma_dev = pci_get_slot(pdev->bus,  in pnw_setup()
 75 static void pnw_exit(struct mid8250 *mid)  in pnw_exit()  argument
 77 	pci_dev_put(mid->dma_dev);  in pnw_exit()
 82 	struct mid8250 *mid = p->private_data;  in tng_handle_irq()  local
 89 	chip = pci_get_drvdata(mid->dma_dev);  in tng_handle_irq()
 [all …]
 
 | 
| /linux/drivers/watchdog/ | 
| H A D | intel-mid_wdt.c | 3  *      intel-mid_wdt: generic Intel MID SCU watchdog driver47 wdt_command(struct mid_wdt *mid, int sub, const void *in, size_t inlen, size_t size)  in wdt_command()  argument
 49 	struct intel_scu_ipc_dev *scu = mid->scu;  in wdt_command()
 57 	struct mid_wdt *mid = watchdog_get_drvdata(wd);  in wdt_start()  local
 73 	ret = wdt_command(mid, SCU_WATCHDOG_START, &ipc_wd_start,  in wdt_start()
 76 		dev_crit(mid->dev, "error starting watchdog: %d\n", ret);  in wdt_start()
 83 	struct mid_wdt *mid = watchdog_get_drvdata(wd);  in wdt_ping()  local
 86 	ret = wdt_command(mid, SCU_WATCHDOG_KEEPALIVE, NULL, 0, 0);  in wdt_ping()
 88 		dev_crit(mid->dev, "Error executing keepalive: %d\n", ret);  in wdt_ping()
 95 	struct mid_wdt *mid = watchdog_get_drvdata(wd);  in wdt_stop()  local
 [all …]
 
 | 
| /linux/net/sctp/ | 
| H A D | stream_interleave.c | 63 		__u32 mid;  in sctp_chunk_assign_mid()  local75 			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 …]
 
 | 
| /linux/arch/alpha/kernel/ | 
| H A D | core_mcpcia.c | 91 	unsigned long mid = MCPCIA_HOSE2MID(hose->index);  in conf_read()  local99 		 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 …]
 
 | 
| /linux/fs/smb/client/ | 
| H A D | transport.c | 35 cifs_wake_up_task(struct mid_q_entry *mid)  in cifs_wake_up_task()  argument37 	if (mid->mid_state == MID_RESPONSE_RECEIVED)  in cifs_wake_up_task()
 38 		mid->mid_state = MID_RESPONSE_READY;  in cifs_wake_up_task()
 39 	wake_up_process(mid->callback_data);  in cifs_wake_up_task()
 69 		cifs_server_dbg(VFS, "Invalid mid allocation time\n");  in __release_mid()
 105 		trace_smb3_slow_rsp(smb_cmd, midEntry->mid, midEntry->pid,  in __release_mid()
 108 			pr_debug("slow rsp: cmd %d mid %llu",  in __release_mid()
 109 				 midEntry->command, midEntry->mid);  in __release_mid()
 123 delete_mid(struct mid_q_entry *mid)  in delete_mid()  argument
 125 	spin_lock(&mid->server->mid_queue_lock);  in delete_mid()
 [all …]
 
 | 
| H A D | cifstransport.c | 50 	temp->mid = get_mid(smb_buffer);  in alloc_mid()55 	/* when mid allocated can be before when sent */  in alloc_mid()
 60 	 * The default is for the mid to be synchronous, so the  in alloc_mid()
 126 	struct mid_q_entry *mid;  in cifs_setup_async_request()  local
 136 	mid = alloc_mid(hdr, server);  in cifs_setup_async_request()
 137 	if (mid == NULL)  in cifs_setup_async_request()
 140 	rc = cifs_sign_rqst(rqst, server, &mid->sequence_number);  in cifs_setup_async_request()
 142 		release_mid(mid);  in cifs_setup_async_request()
 146 	return mid;  in cifs_setup_async_request()
 177 cifs_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server,  in cifs_check_receive()  argument
 [all …]
 
 | 
| H A D | smb2misc.c | 23 check_smb2_hdr(struct smb2_hdr *shdr, __u64 mid)  in check_smb2_hdr()  argument32 	    (mid == wire_mid)) {  in check_smb2_hdr()
 42 	} else { /* bad signature or mid */  in check_smb2_hdr()
 46 		if (mid != wire_mid)  in check_smb2_hdr()
 48 				 mid, wire_mid);  in check_smb2_hdr()
 50 	cifs_dbg(VFS, "Bad SMB detected. The Mid=%llu\n", wire_mid);  in check_smb2_hdr()
 146 	__u64 mid;  in smb2_check_message()  local
 176 	mid = le64_to_cpu(shdr->MessageId);  in smb2_check_message()
 177 	if (check_smb2_hdr(shdr, mid))  in smb2_check_message()
 207 		cifs_dbg(VFS, "SMB length greater than maximum, mid=%llu\n",  in smb2_check_message()
 [all …]
 
 | 
| H A D | smb1ops.c | 33 	       struct mid_q_entry *mid)  in send_nt_cancel()  argument45 	rc = cifs_sign_smb(in_buf, server, &mid->sequence_number);  in send_nt_cancel()
 63 	cifs_dbg(FYI, "issued NT_CANCEL for mid %u, rc = %d\n",  in send_nt_cancel()
 96 	struct mid_q_entry *mid;  in cifs_find_mid()  local
 99 	list_for_each_entry(mid, &server->pending_mid_q, qhead) {  in cifs_find_mid()
 100 		if (compare_mid(mid->mid, buf) &&  in cifs_find_mid()
 101 		    mid->mid_state == MID_REQUEST_SUBMITTED &&  in cifs_find_mid()
 102 		    le16_to_cpu(mid->command) == buf->Command) {  in cifs_find_mid()
 103 			kref_get(&mid->refcount);  in cifs_find_mid()
 105 			return mid;  in cifs_find_mid()
 [all …]
 
 | 
| /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()  local67 	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 …]
 
 | 
| /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()
 305 	u8 mid;  in wil_vif_alloc()  local
 307 	mid = wil_vif_find_free_mid(wil);  in wil_vif_alloc()
 308 	if (mid == U8_MAX) {  in wil_vif_alloc()
 319 	if (mid == 0) {  in wil_vif_alloc()
 329 	vif->mid = mid;  in wil_vif_alloc()
 417 	if (wil->vifs[vif->mid]) {  in wil_vif_add()
 418 		dev_err(&ndev->dev, "VIF with mid %d already in use\n",  in wil_vif_add()
 [all …]
 
 | 
| H A D | wmi.c | 633 static int __wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid,  in __wmi_send()  argument646 			.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()
 938 		if (vif->mid == 0)  in wmi_evt_scan_complete()
 [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 | rx_reorder.c | 87 	int tid, cid, mid, mcast, retry;  in wil_rx_reorder()  local94 	wil->txrx_ops.get_reorder_params(wil, skb, &tid, &cid, &mid, &seq,  in wil_rx_reorder()
 98 	wil_dbg_txrx(wil, "MID %d CID %d TID %d Seq 0x%03x mcast %01x\n",  in wil_rx_reorder()
 99 		     mid, cid, tid, seq, mcast);  in wil_rx_reorder()
 101 	vif = wil->vifs[mid];  in wil_rx_reorder()
 103 		wil_dbg_txrx(wil, "invalid VIF, mid %d\n", mid);  in wil_rx_reorder()
 233 	wil_dbg_txrx(wil, "BAR: CID %d MID %d TID %d Seq 0x%03x head 0x%03x\n",  in wil_rx_bar()
 234 		     cid, vif->mid, tid, seq, r->head_seq_num);  in wil_rx_bar()
 298 int wil_addba_rx_request(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid,  in wil_addba_rx_request()  argument
 353 	rc = wil->txrx_ops.wmi_addba_rx_resp(wil, mid, cid, tid, dialog_token,  in wil_addba_rx_request()
 [all …]
 
 | 
| /linux/drivers/net/ethernet/mellanox/mlxsw/ | 
| H A D | spectrum_pgt.c | 113 mlxsw_sp_pgt_entry_create(struct mlxsw_sp_pgt *pgt, u16 mid, u16 smpe)  in mlxsw_sp_pgt_entry_create()  argument123 	ret = idr_replace(&pgt->pgt_idr, pgt_entry, mid);  in mlxsw_sp_pgt_entry_create()
 130 	pgt_entry->index = mid;  in mlxsw_sp_pgt_entry_create()
 152 mlxsw_sp_pgt_entry_get(struct mlxsw_sp_pgt *pgt, u16 mid, u16 smpe)  in mlxsw_sp_pgt_entry_get()  argument
 156 	pgt_entry = idr_find(&pgt->pgt_idr, mid);  in mlxsw_sp_pgt_entry_get()
 160 	return mlxsw_sp_pgt_entry_create(pgt, mid, smpe);  in mlxsw_sp_pgt_entry_get()
 163 static void mlxsw_sp_pgt_entry_put(struct mlxsw_sp_pgt *pgt, u16 mid)  in mlxsw_sp_pgt_entry_put()  argument
 167 	pgt_entry = idr_find(&pgt->pgt_idr, mid);  in mlxsw_sp_pgt_entry_put()
 245 static int mlxsw_sp_pgt_entry_port_add(struct mlxsw_sp *mlxsw_sp, u16 mid,  in mlxsw_sp_pgt_entry_port_add()  argument
 254 	pgt_entry = mlxsw_sp_pgt_entry_get(mlxsw_sp->pgt, mid, smpe);  in mlxsw_sp_pgt_entry_port_add()
 [all …]
 
 | 
| /linux/drivers/hwmon/pmbus/ | 
| H A D | ucd9000.c | 333 			       const struct i2c_device_id *mid,  in ucd9000_probe_gpio()  argument338 	switch (mid->driver_data) {  in ucd9000_probe_gpio()
 378 			       const struct i2c_device_id *mid,  in ucd9000_probe_gpio()  argument
 446 				const struct i2c_device_id *mid,  in ucd9000_init_debugfs()  argument
 466 	if (mid->driver_data == ucd9090 || mid->driver_data == ucd90160 ||  in ucd9000_init_debugfs()
 467 	    mid->driver_data == ucd90320 || mid->driver_data == ucd90910) {  in ucd9000_init_debugfs()
 468 		gpi_count = mid->driver_data == ucd90320 ? UCD90320_GPI_COUNT  in ucd9000_init_debugfs()
 495 				const struct i2c_device_id *mid,  in ucd9000_init_debugfs()  argument
 507 	const struct i2c_device_id *mid;  in ucd9000_probe()  local
 525 	for (mid = ucd9000_id; mid->name[0]; mid++) {  in ucd9000_probe()
 [all …]
 
 | 
| H A D | ucd9200.c | 78 	const struct i2c_device_id *mid;  in ucd9200_probe()  local96 	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 | max15301.c | 61 	const struct i2c_device_id *mid;  in max15301_probe()  local74 	for (mid = max15301_id; mid->name[0]; mid++) {  in max15301_probe()
 75 		if (!strncasecmp(mid->name, device_id, strlen(mid->name)))  in max15301_probe()
 78 	if (!mid->name[0]) {  in max15301_probe()
 
 | 
| H A D | pim4328.c | 137 	const struct i2c_device_id *mid;  in pim4328_probe()  local158 	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()
 
 | 
| H A D | zl6100.c | 285 	const struct i2c_device_id *mid;  in zl6100_probe()  local301 	mid = NULL;  in zl6100_probe()
 302 	for (mid = zl6100_id; mid->name[0]; mid++) {  in zl6100_probe()
 303 		if (!strncasecmp(mid->name, device_id, strlen(mid->name)))  in zl6100_probe()
 306 	if (!mid->name[0]) {  in zl6100_probe()
 310 	if (strcmp(client->name, mid->name) != 0)  in zl6100_probe()
 313 			   client->name, mid->name);  in zl6100_probe()
 320 	data->id = mid->driver_data;  in zl6100_probe()
 
 | 
| H A D | bpa-rs600.c | 161 	const struct i2c_device_id *mid;  in bpa_rs600_probe()  local175 	for (mid = bpa_rs600_id; mid->name[0]; mid++) {  in bpa_rs600_probe()
 176 		if (!strncasecmp(buf, mid->name, strlen(mid->name)))  in bpa_rs600_probe()
 179 	if (!mid->name[0]) {  in bpa_rs600_probe()
 
 | 
| H A D | ltc4286.c | 70 	const struct i2c_device_id *mid;  in ltc4286_probe()  local98 	for (mid = ltc4286_id; mid->name[0]; mid++) {  in ltc4286_probe()
 99 		if (!strncasecmp(mid->name, block_buffer, strlen(mid->name)))  in ltc4286_probe()
 102 	if (!mid->name[0])  in ltc4286_probe()
 
 | 
| H A D | stpddc60.c | 200 	const struct i2c_device_id *mid;  in stpddc60_probe()  local213 	for (mid = stpddc60_id; mid->name[0]; mid++) {  in stpddc60_probe()
 214 		if (!strncasecmp(mid->name, device_id, strlen(mid->name)))  in stpddc60_probe()
 217 	if (!mid->name[0]) {  in stpddc60_probe()
 
 | 
| /linux/fs/erofs/ | 
| H A D | namei.c | 60 		const int mid = head + (back - head) / 2;  in find_target_dirent()  local61 		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, erofs_pos(dir->i_sb, mid), true);  in erofs_find_target_block()
 115 					  mid, EROFS_I(dir)->nid);  in erofs_find_target_block()
 [all …]
 
 | 
| /linux/arch/hexagon/lib/ | 
| H A D | checksum.c | 88 	int i, start, mid, end, mask;  in do_csum()  local100 	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 …]
 
 |