/drivers/usb/misc/ |
D | phidgetmotorcontrol.c | 56 static int set_motor(struct motorcontrol *mc, int motor) in set_motor() argument 64 dev_err(&mc->intf->dev, "%s - out of memory\n", __func__); in set_motor() 68 acceleration = mc->acceleration[motor] * 10; in set_motor() 70 speed = (mc->desired_speed[motor] * 127) / 100; in set_motor() 72 speed2 = (mc->desired_speed[motor] * 230 * 128) / 100; in set_motor() 81 retval = usb_control_msg(mc->udev, in set_motor() 82 usb_sndctrlpipe(mc->udev, 0), in set_motor() 86 dev_err(&mc->intf->dev, "usb_control_msg returned %d\n", in set_motor() 95 struct motorcontrol *mc = urb->context; in motorcontrol_irq() local 96 unsigned char *buffer = mc->data; in motorcontrol_irq() [all …]
|
/drivers/infiniband/core/ |
D | ucma.c | 89 struct ucma_multicast *mc; member 167 struct ucma_multicast *mc; in ucma_alloc_multicast() local 170 mc = kzalloc(sizeof(*mc), GFP_KERNEL); in ucma_alloc_multicast() 171 if (!mc) in ucma_alloc_multicast() 180 ret = idr_get_new(&multicast_idr, mc, &mc->id); in ucma_alloc_multicast() 187 mc->ctx = ctx; in ucma_alloc_multicast() 188 list_add_tail(&mc->list, &ctx->mc_list); in ucma_alloc_multicast() 189 return mc; in ucma_alloc_multicast() 192 kfree(mc); in ucma_alloc_multicast() 232 uevent->mc = (struct ucma_multicast *) in ucma_set_event_context() [all …]
|
D | cma.c | 820 struct cma_multicast *mc; in cma_leave_mc_groups() local 823 mc = container_of(id_priv->mc_list.next, in cma_leave_mc_groups() 825 list_del(&mc->list); in cma_leave_mc_groups() 826 ib_sa_free_multicast(mc->multicast.ib); in cma_leave_mc_groups() 827 kfree(mc); in cma_leave_mc_groups() 2626 struct cma_multicast *mc = multicast->context; in cma_ib_mc_handler() local 2630 id_priv = mc->id_priv; in cma_ib_mc_handler() 2643 event.param.ud.private_data = mc->context; in cma_ib_mc_handler() 2690 struct cma_multicast *mc) in cma_join_ib_multicast() argument 2703 cma_set_mgid(id_priv, (struct sockaddr *) &mc->addr, &rec.mgid); in cma_join_ib_multicast() [all …]
|
/drivers/mtd/maps/ |
D | wr_sbc82xx_flash.c | 79 volatile memctl_cpm2_t *mc = &cpm2_immr->im_memctl; in init_sbc82xx_flash() local 84 mc = ioremap(0xff700000 + 0x5000, sizeof(memctl_cpm2_t)); in init_sbc82xx_flash() 86 mc = &cpm2_immr->im_memctl; in init_sbc82xx_flash() 90 if ((mc->memc_br0 & 0x00001800) == 0x00001800) in init_sbc82xx_flash() 93 init_sbc82xx_one_flash(sbc82xx_flash_map[0], mc->memc_br0, mc->memc_or0); in init_sbc82xx_flash() 94 init_sbc82xx_one_flash(sbc82xx_flash_map[1], mc->memc_br6, mc->memc_or6); in init_sbc82xx_flash() 95 init_sbc82xx_one_flash(sbc82xx_flash_map[2], mc->memc_br1, mc->memc_or1); in init_sbc82xx_flash() 98 iounmap((void *) mc); in init_sbc82xx_flash()
|
/drivers/scsi/qla2xxx/ |
D | qla_mbx.c | 285 mbx_cmd_t mc; in qla2x00_load_ram() local 286 mbx_cmd_t *mcp = &mc; in qla2x00_load_ram() 348 mbx_cmd_t mc; in qla2x00_execute_fw() local 349 mbx_cmd_t *mcp = &mc; in qla2x00_execute_fw() 414 mbx_cmd_t mc; in qla2x00_get_fw_version() local 415 mbx_cmd_t *mcp = &mc; in qla2x00_get_fw_version() 473 mbx_cmd_t mc; in qla2x00_get_fw_options() local 474 mbx_cmd_t *mcp = &mc; in qla2x00_get_fw_options() 520 mbx_cmd_t mc; in qla2x00_set_fw_options() local 521 mbx_cmd_t *mcp = &mc; in qla2x00_set_fw_options() [all …]
|
/drivers/net/ibm_newemac/ |
D | mal.c | 339 struct mal_commac *mc = list_entry(l, struct mal_commac, list); in mal_rxde() local 340 if (deir & mc->rx_chan_mask) { in mal_rxde() 341 set_bit(MAL_COMMAC_RX_STOPPED, &mc->flags); in mal_rxde() 342 mc->ops->rxde(mc->dev); in mal_rxde() 405 struct mal_commac *mc = in mal_poll() local 407 mc->ops->poll_tx(mc->dev); in mal_poll() 416 struct mal_commac *mc = in mal_poll() local 419 if (unlikely(test_bit(MAL_COMMAC_POLL_DISABLED, &mc->flags))) in mal_poll() 421 n = mc->ops->poll_rx(mc->dev, budget); in mal_poll() 438 struct mal_commac *mc = in mal_poll() local [all …]
|
/drivers/scsi/ |
D | megaraid.c | 1906 megacmd_t mc; in megaraid_reset() local 1912 mc.cmd = MEGA_CLUSTER_CMD; in megaraid_reset() 1913 mc.opcode = MEGA_RESET_RESERVATIONS; in megaraid_reset() 1915 if( mega_internal_command(adapter, &mc, NULL) != 0 ) { in megaraid_reset() 2872 megacmd_t mc; in proc_rdrv() local 2905 memset(&mc, 0, sizeof(megacmd_t)); in proc_rdrv() 2937 mc.xferaddr = (u32)disk_array_dma_handle; in proc_rdrv() 2940 mc.cmd = FC_NEW_CONFIG; in proc_rdrv() 2941 mc.opcode = OP_DCMD_READ_CONFIG; in proc_rdrv() 2943 if( mega_internal_command(adapter, &mc, NULL) ) { in proc_rdrv() [all …]
|
/drivers/net/ |
D | eql.c | 264 static int eql_g_master_cfg(struct net_device *dev, master_config_t __user *mc); 265 static int eql_s_master_cfg(struct net_device *dev, master_config_t __user *mc); 551 master_config_t mc; in eql_g_master_cfg() local 555 mc.max_slaves = eql->max_slaves; in eql_g_master_cfg() 556 mc.min_slaves = eql->min_slaves; in eql_g_master_cfg() 557 if (copy_to_user(mcp, &mc, sizeof (master_config_t))) in eql_g_master_cfg() 567 master_config_t mc; in eql_s_master_cfg() local 569 if (copy_from_user(&mc, mcp, sizeof (master_config_t))) in eql_s_master_cfg() 574 eql->max_slaves = mc.max_slaves; in eql_s_master_cfg() 575 eql->min_slaves = mc.min_slaves; in eql_s_master_cfg()
|
D | tsi108_eth.c | 1189 struct dev_mc_list *mc = dev->mc_list; in tsi108_set_rx_mode() local 1194 while (mc) { in tsi108_set_rx_mode() 1197 if (mc->dmi_addrlen == 6) { in tsi108_set_rx_mode() 1198 crc = ether_crc(6, mc->dmi_addr); in tsi108_set_rx_mode() 1206 mc->dmi_addrlen); in tsi108_set_rx_mode() 1209 mc = mc->next; in tsi108_set_rx_mode()
|
D | ps3_gelic_net.c | 530 struct dev_mc_list *mc; in gelic_net_set_multi() local 564 for (mc = netdev->mc_list; mc; mc = mc->next) { in gelic_net_set_multi() 566 p = mc->dmi_addr; in gelic_net_set_multi()
|
D | spider_net.c | 627 struct dev_mc_list *mc; in spider_net_set_multi() local 648 for (mc = netdev->mc_list; mc; mc = mc->next) { in spider_net_set_multi() 649 hash = spider_net_get_multicast_hash(netdev, mc->dmi_addr); in spider_net_set_multi()
|
/drivers/edac/ |
D | i5100_edac.c | 75 static inline u32 i5100_mc_errdeten(u32 mc) in i5100_mc_errdeten() argument 77 return mc >> 5 & 1; in i5100_mc_errdeten() 318 struct pci_dev *mc; /* device 16 func 1 */ member 521 pci_read_config_dword(priv->mc, I5100_FERR_NF_MEM, &dw); in i5100_check_error() 525 pci_read_config_dword(priv->mc, I5100_NERR_NF_MEM, &dw2); in i5100_check_error() 527 pci_write_config_dword(priv->mc, I5100_NERR_NF_MEM, in i5100_check_error() 529 pci_write_config_dword(priv->mc, I5100_FERR_NF_MEM, dw); in i5100_check_error() 617 pci_read_config_word(priv->mc, I5100_SPDDATA, &w); in i5100_read_spd_byte() 621 pci_write_config_dword(priv->mc, I5100_SPDCMD, in i5100_read_spd_byte() 629 pci_read_config_word(priv->mc, I5100_SPDDATA, &w); in i5100_read_spd_byte() [all …]
|
/drivers/s390/net/ |
D | qeth_l2_main.c | 177 struct qeth_mc_mac *mc; in qeth_l2_add_mc() local 180 mc = kmalloc(sizeof(struct qeth_mc_mac), GFP_ATOMIC); in qeth_l2_add_mc() 182 if (!mc) in qeth_l2_add_mc() 185 memcpy(mc->mc_addr, mac, OSA_ADDR_LEN); in qeth_l2_add_mc() 186 mc->mc_addrlen = OSA_ADDR_LEN; in qeth_l2_add_mc() 187 mc->is_vmac = vmac; in qeth_l2_add_mc() 197 list_add_tail(&mc->list, &card->mc_list); in qeth_l2_add_mc() 199 kfree(mc); in qeth_l2_add_mc() 204 struct qeth_mc_mac *mc, *tmp; in qeth_l2_del_all_mc() local 207 list_for_each_entry_safe(mc, tmp, &card->mc_list, list) { in qeth_l2_del_all_mc() [all …]
|
/drivers/s390/char/ |
D | tape_3590.c | 1281 if (sense->mc == 0) in tape_3590_print_era_msg() 1283 if ((sense->mc > 0) && (sense->mc < TAPE_3590_MAX_MSG)) { in tape_3590_print_era_msg() 1284 if (tape_3590_msg[sense->mc] != NULL) in tape_3590_print_era_msg() 1286 tape_3590_msg[sense->mc]); in tape_3590_print_era_msg() 1289 dev_name(&device->cdev->dev), sense->mc); in tape_3590_print_era_msg() 1293 if (sense->mc == 0xf0) { in tape_3590_print_era_msg() 1297 sense->fmt.f70.sev, sense->mc, in tape_3590_print_era_msg() 1304 if (sense->mc == 0xf1) { in tape_3590_print_era_msg() 1310 sense->mc, sense->fmt.f71.emc, in tape_3590_print_era_msg() 1316 if (sense->mc == 0xf2) { in tape_3590_print_era_msg() [all …]
|
D | tape_3590.h | 87 unsigned int mc:8; member 151 __u8 mc; member
|
/drivers/media/dvb/dvb-usb/ |
D | Makefile | 24 dvb-usb-dibusb-mc-objs = dibusb-mc.o 25 obj-$(CONFIG_DVB_USB_DIBUSB_MC) += dvb-usb-dibusb-common.o dvb-usb-dibusb-mc.o
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_multicast.c | 339 mcast->mc = ib_sa_join_multicast(&ipoib_sa_client, priv->ca, in ipoib_mcast_sendonly_join() 348 if (IS_ERR(mcast->mc)) { in ipoib_mcast_sendonly_join() 349 ret = PTR_ERR(mcast->mc); in ipoib_mcast_sendonly_join() 485 mcast->mc = ib_sa_join_multicast(&ipoib_sa_client, priv->ca, priv->port, in ipoib_mcast_join() 488 if (IS_ERR(mcast->mc)) { in ipoib_mcast_join() 490 ret = PTR_ERR(mcast->mc); in ipoib_mcast_join() 634 ib_sa_free_multicast(mcast->mc); in ipoib_mcast_leave()
|
/drivers/net/usb/ |
D | catc.c | 638 struct dev_mc_list *mc; in catc_set_multicast_list() local 657 for (i = 0, mc = netdev->mc_list; mc && i < netdev->mc_count; i++, mc = mc->next) { in catc_set_multicast_list() 658 u32 crc = ether_crc_le(6, mc->dmi_addr); in catc_set_multicast_list()
|
/drivers/isdn/gigaset/ |
D | interface.c | 319 unsigned mc; in if_tiocmset() local 337 mc = (cs->control_state | set) & ~clear & (TIOCM_RTS|TIOCM_DTR); in if_tiocmset() 338 retval = cs->ops->set_modem_ctrl(cs, cs->control_state, mc); in if_tiocmset() 339 cs->control_state = mc; in if_tiocmset()
|
/drivers/media/dvb/dvb-core/ |
D | dvb_net.c | 1113 static int dvb_set_mc_filter (struct net_device *dev, struct dev_mc_list *mc) argument 1120 memcpy(priv->multi_macs[priv->multi_num], mc->dmi_addr, 6); 1145 struct dev_mc_list *mc; local 1153 for (mci = 0, mc=dev->mc_list; 1155 mc = mc->next, mci++) { 1156 dvb_set_mc_filter(dev, mc);
|
/drivers/gpu/drm/i810/ |
D | i810_dma.c | 1110 drm_i810_mc_t *mc = data; in i810_dma_mc() local 1114 if (mc->idx >= dma->buf_count || mc->idx < 0) in i810_dma_mc() 1117 i810_dma_dispatch_mc(dev, dma->buflist[mc->idx], mc->used, in i810_dma_mc() 1118 mc->last_render); in i810_dma_mc() 1120 atomic_add(mc->used, &dev->counts[_DRM_STAT_SECONDARY]); in i810_dma_mc()
|
/drivers/ssb/ |
D | main.c | 903 u32 n1, n2, clock, m1, m2, m3, mc; in ssb_calc_clock_rate() local 946 mc = ((m & SSB_CHIPCO_CLK_MC) >> SSB_CHIPCO_CLK_MC_SHIFT); in ssb_calc_clock_rate() 961 switch (mc) { in ssb_calc_clock_rate() 982 if (!(mc & SSB_CHIPCO_CLK_T2MC_M1BYP)) in ssb_calc_clock_rate() 984 if (!(mc & SSB_CHIPCO_CLK_T2MC_M2BYP)) in ssb_calc_clock_rate() 986 if (!(mc & SSB_CHIPCO_CLK_T2MC_M3BYP)) in ssb_calc_clock_rate()
|
/drivers/net/skfp/ |
D | smt.c | 104 static void smt_fill_mac_counter(struct s_smc *smc, struct smt_p_mac_counter *mc); 1090 smt_fill_mac_counter(smc,&sif->mc) ; /* set mac counter field */ in smt_send_sif_operation() 1482 static void smt_fill_mac_counter(struct s_smc *smc, struct smt_p_mac_counter *mc) in smt_fill_mac_counter() argument 1484 SMTSETPARA(mc,SMT_P_MAC_COUNTER) ; in smt_fill_mac_counter() 1485 mc->mc_mib_index = INDEX_MAC ; in smt_fill_mac_counter() 1486 mc->mc_index = mac_index(smc,1) ; in smt_fill_mac_counter() 1487 mc->mc_receive_ct = smc->mib.m[MAC0].fddiMACCopied_Ct ; in smt_fill_mac_counter() 1488 mc->mc_transmit_ct = smc->mib.m[MAC0].fddiMACTransmit_Ct ; in smt_fill_mac_counter()
|
/drivers/net/skfp/h/ |
D | fplustm.h | 227 } mc ; member
|
/drivers/video/ |
D | metronomefb.c | 136 u8 mc; member 212 wfm_hdr->mc += 1; in load_waveform()
|