Home
last modified time | relevance | path

Searched refs:max_frame_size (Results 1 – 25 of 56) sorted by relevance

123

/drivers/tty/
Dsynclinkmp.c181 u32 max_frame_size; /* as set by device config */ member
931 if (count > info->max_frame_size) { in write()
950 min(info->max_frame_size - info->tx_count - 1, in write()
951 info->max_frame_size - info->tx_put)); in write()
959 if (info->tx_put >= info->max_frame_size) in write()
960 info->tx_put -= info->max_frame_size; in write()
1015 if (info->tx_count < info->max_frame_size - 1) { in put_char()
1017 if (info->tx_put >= info->max_frame_size) in put_char()
1018 info->tx_put -= info->max_frame_size; in put_char()
1131 ret = info->max_frame_size - info->tx_count - 1; in write_room()
[all …]
Dsynclink.c207 u32 max_frame_size; /* as set by device config */ member
2279 return info->max_frame_size; in mgsl_chars_in_buffer()
3585 BuffersPerFrame = (unsigned short)(info->max_frame_size/DMABUFFERSIZE); in mgsl_allocate_dma_buffers()
3586 if ( info->max_frame_size % DMABUFFERSIZE ) in mgsl_allocate_dma_buffers()
3879 info->intermediate_rxbuffer = kmalloc(info->max_frame_size, GFP_KERNEL | GFP_DMA); in mgsl_alloc_intermediate_rxbuffer_memory()
3883 info->flag_buf = kzalloc(info->max_frame_size, GFP_KERNEL); in mgsl_alloc_intermediate_rxbuffer_memory()
3937 kmalloc(info->max_frame_size, GFP_KERNEL); in mgsl_alloc_intermediate_txbuffer_memory()
4201 info->max_frame_size = maxframe[info->line]; in mgsl_add_device()
4229 if ( info->max_frame_size < 4096 ) in mgsl_add_device()
4230 info->max_frame_size = 4096; in mgsl_add_device()
[all …]
Dsynclink_gt.c297 u32 max_frame_size; /* as set by device config */ member
830 if (!info->tx_buf || (count > info->max_frame_size)) in write()
866 if (info->tx_count < info->max_frame_size) { in put_char()
1243 info->irq_level, info->max_frame_size); in line_info()
2425 info->tx_buf = kmalloc(info->max_frame_size, GFP_KERNEL); in startup()
3342 info->tmp_rbuf = kmalloc(info->max_frame_size + 5, GFP_KERNEL); in alloc_tmp_rbuf()
3346 info->flag_buf = kzalloc(info->max_frame_size + 5, GFP_KERNEL); in alloc_tmp_rbuf()
3526 info->max_frame_size = maxframe[info->line]; in add_device()
3540 if (info->max_frame_size < 4096) in add_device()
3541 info->max_frame_size = 4096; in add_device()
[all …]
/drivers/infiniband/hw/nes/
Dnes_mgt.c75 skb = dev_alloc_skb(mgtvnic->nesvnic->max_frame_size); in nes_replenish_mgt_rq()
80 skb->data, mgtvnic->nesvnic->max_frame_size, PCI_DMA_FROMDEVICE); in nes_replenish_mgt_rq()
83 cb->maplen = mgtvnic->nesvnic->max_frame_size; in nes_replenish_mgt_rq()
87 cpu_to_le32(mgtvnic->nesvnic->max_frame_size); in nes_replenish_mgt_rq()
592 nesvnic->max_frame_size, PCI_DMA_TODEVICE); in mgt_thread()
1025 skb = dev_alloc_skb(nesvnic->max_frame_size); in nes_init_mgt_qp()
1034 nesvnic->max_frame_size, PCI_DMA_FROMDEVICE); in nes_init_mgt_qp()
1037 cb->maplen = nesvnic->max_frame_size; in nes_init_mgt_qp()
1040 mgt_rqe->wqe_words[NES_NIC_RQ_WQE_LENGTH_1_0_IDX] = cpu_to_le32((u32)nesvnic->max_frame_size); in nes_init_mgt_qp()
Dnes_hw.c1585 skb = dev_alloc_skb(nesvnic->max_frame_size); in nes_replenish_nic_rq()
1590 skb->data, nesvnic->max_frame_size, PCI_DMA_FROMDEVICE); in nes_replenish_nic_rq()
1593 cb->maplen = nesvnic->max_frame_size; in nes_replenish_nic_rq()
1597 cpu_to_le32(nesvnic->max_frame_size); in nes_replenish_nic_rq()
1848 skb = dev_alloc_skb(nesvnic->max_frame_size); in nes_init_nic_qp()
1859 nesvnic->max_frame_size, PCI_DMA_FROMDEVICE); in nes_init_nic_qp()
1862 cb->maplen = nesvnic->max_frame_size; in nes_init_nic_qp()
1865 nic_rqe->wqe_words[NES_NIC_RQ_WQE_LENGTH_1_0_IDX] = cpu_to_le32(nesvnic->max_frame_size); in nes_init_nic_qp()
2883 nesvnic->max_frame_size, PCI_DMA_FROMDEVICE); in nes_nic_ce_handler()
/drivers/video/fbdev/omap2/omapfb/
Domapfb-main.c417 static void shrink_height(unsigned long max_frame_size, in shrink_height() argument
421 var->yres_virtual = max_frame_size / in shrink_height()
431 static void shrink_width(unsigned long max_frame_size, in shrink_width() argument
435 var->xres_virtual = max_frame_size / var->yres_virtual / in shrink_width()
457 unsigned long max_frame_size = ofbi->region->size; in check_fb_size() local
463 if (check_vrfb_fb_size(max_frame_size, var)) in check_fb_size()
465 max_frame_size, var->xres_virtual, bytespp) * in check_fb_size()
468 if (check_vrfb_fb_size(max_frame_size, var)) { in check_fb_size()
476 DBG("max frame size %lu, line size %lu\n", max_frame_size, line_size); in check_fb_size()
478 if (line_size * var->yres_virtual > max_frame_size) in check_fb_size()
[all …]
/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c249 if ((hw->max_frame_size != max_frame) || in ixgb_up()
250 (hw->max_frame_size != in ixgb_up()
253 hw->max_frame_size = max_frame; in ixgb_up()
255 IXGB_WRITE_REG(hw, MFS, hw->max_frame_size << IXGB_MFS_SHIFT); in ixgb_up()
257 if (hw->max_frame_size > in ixgb_up()
320 IXGB_WRITE_REG(hw, MFS, hw->max_frame_size << IXGB_MFS_SHIFT); in ixgb_reset()
321 if (hw->max_frame_size > in ixgb_reset()
597 hw->max_frame_size = netdev->mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; in ixgb_sw_init()
598 adapter->rx_buffer_len = hw->max_frame_size + 8; /* + 8 for errata */ in ixgb_sw_init()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c455 adapter->hw.max_frame_size = new_mtu; in atl1e_change_mtu()
624 hw->max_frame_size = adapter->netdev->mtu; in atl1e_sw_init()
625 hw->rx_jumbo_th = (hw->max_frame_size + ETH_HLEN + in atl1e_sw_init()
748 + adapter->hw.max_frame_size in atl1e_init_ring_resources()
958 if (hw->max_frame_size <= 1500) { in atl1e_configure_tx()
959 jumbo_thresh = hw->max_frame_size + extra_size; in atl1e_configure_tx()
960 } else if (hw->max_frame_size < 6*1024) { in atl1e_configure_tx()
962 (hw->max_frame_size + extra_size) * 2 / 3; in atl1e_configure_tx()
964 jumbo_thresh = (hw->max_frame_size + extra_size) / 2; in atl1e_configure_tx()
1140 AT_WRITE_REG(hw, REG_MTU, hw->max_frame_size + ETH_HLEN + in atl1e_configure()
Datl1e.h328 u16 max_frame_size; member
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_mfw_req.h145 u32 max_frame_size; /* Max Frame Size. bytes */ member
/drivers/net/ethernet/qlogic/qlge/
Dqlge_mpi.c731 mbcp->mbox_in[2] = qdev->max_frame_size; in ql_mb_set_port_cfg()
834 qdev->max_frame_size = mbcp->mbox_out[2]; in ql_mb_get_port_cfg()
1133 qdev->max_frame_size == in ql_mpi_port_cfg_work()
1138 qdev->max_frame_size = CFG_DEFAULT_MAX_FRAME_SIZE; in ql_mpi_port_cfg_work()
/drivers/char/pcmcia/
Dsynclink_cs.c177 u32 max_frame_size; member
532 info->max_frame_size = 4096; in mgslpc_probe()
872 if (buf->count >= info->max_frame_size) { in rx_ready_hdlc()
1662 rc = info->tx_active ? info->max_frame_size : 0; in mgslpc_chars_in_buffer()
2647 info->rx_buf_size = sizeof(RXBUF) + info->max_frame_size; in rx_alloc_buffers()
2664 info->flag_buf = kzalloc(info->max_frame_size, GFP_KERNEL); in rx_alloc_buffers()
2717 info->max_frame_size = maxframe[info->line]; in mgslpc_add_device()
2731 if (info->max_frame_size < 4096) in mgslpc_add_device()
2732 info->max_frame_size = 4096; in mgslpc_add_device()
2733 else if (info->max_frame_size > 65535) in mgslpc_add_device()
[all …]
/drivers/net/ethernet/intel/igbvf/
Digbvf.h238 u32 max_frame_size; member
Dnetdev.c1234 int max_frame_size; in igbvf_set_rlpml() local
1237 max_frame_size = adapter->max_frame_size + VLAN_TAG_SIZE; in igbvf_set_rlpml()
1238 e1000_rlpml_set_vf(hw, max_frame_size); in igbvf_set_rlpml()
1576 adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_sw_init()
2368 adapter->max_frame_size = max_frame; in igbvf_change_mtu()
/drivers/bluetooth/
Dbtwilink.c163 ti_st_proto[i].max_frame_size = HCI_MAX_FRAME_SIZE; in ti_st_open()
/drivers/video/fbdev/omap/
Domapfb_main.c480 unsigned long max_frame_size; in set_fb_var() local
535 max_frame_size = fbdev->mem_desc.region[plane->idx].size; in set_fb_var()
537 if (line_size * var->yres_virtual > max_frame_size) { in set_fb_var()
539 line_size = max_frame_size / var->yres_virtual; in set_fb_var()
545 var->yres_virtual = max_frame_size / line_size; in set_fb_var()
/drivers/scsi/qla2xxx/
Dqla_gs.c1601 eiter->a.max_frame_size = IS_FWI2_CAPABLE(ha) ? in qla2x00_fdmi_rpa()
1604 eiter->a.max_frame_size = cpu_to_be32(eiter->a.max_frame_size); in qla2x00_fdmi_rpa()
1608 "Max_Frame_Size=%x.\n", eiter->a.max_frame_size); in qla2x00_fdmi_rpa()
2168 eiter->a.max_frame_size = IS_FWI2_CAPABLE(ha) ? in qla2x00_fdmiv2_rpa()
2171 eiter->a.max_frame_size = cpu_to_be32(eiter->a.max_frame_size); in qla2x00_fdmiv2_rpa()
2175 "Max_Frame_Size = %x.\n", eiter->a.max_frame_size); in qla2x00_fdmiv2_rpa()
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c1506 adapter->hw.mac.max_frame_size + PCH_GBE_DMA_ALIGN + NET_IP_ALIGN; in pch_gbe_alloc_tx_buffers()
2033 hw->mac.max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in pch_gbe_sw_init()
2056 hw->mac.min_frame_size, hw->mac.max_frame_size); in pch_gbe_sw_init()
2292 adapter->hw.mac.max_frame_size = max_frame; in pch_gbe_change_mtu()
2297 adapter->hw.mac.max_frame_size = max_frame; in pch_gbe_change_mtu()
2303 adapter->hw.mac.max_frame_size); in pch_gbe_change_mtu()
Dpch_gbe.h372 u32 max_frame_size; member
/drivers/media/usb/usbvision/
Dusbvision.h408 int max_frame_size; /* Bytes in one video frame */ member
/drivers/net/ethernet/intel/igb/
Digb_main.c1897 if ((adapter->max_frame_size > ETH_FRAME_LEN + ETH_FCS_LEN) && in igb_reset()
1917 min_tx_space = (adapter->max_frame_size + in igb_reset()
1923 min_rx_space = adapter->max_frame_size; in igb_reset()
1952 ((pba << 10) - 2 * adapter->max_frame_size)); in igb_reset()
2981 adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN + in igb_sw_init()
3577 u32 max_frame_size = adapter->max_frame_size; in igb_rlpml_set() local
3582 igb_set_vf_rlpml(adapter, max_frame_size, pf_id); in igb_rlpml_set()
3589 max_frame_size = MAX_JUMBO_FRAME_SIZE; in igb_rlpml_set()
3592 wr32(E1000_RLPML, max_frame_size); in igb_rlpml_set()
5211 adapter->max_frame_size = max_frame; in igb_change_mtu()
[all …]
/drivers/net/ethernet/atheros/atlx/
Datl2.h405 u16 max_frame_size; member
/drivers/scsi/be2iscsi/
Dbe_cmds.h664 u32 max_frame_size; member
676 u32 max_frame_size; member
/drivers/net/ethernet/atheros/atl1c/
Datl1c.h386 u16 max_frame_size; member
/drivers/scsi/bnx2i/
Dbnx2i_init.c397 stats->max_frame_size = hba->netdev->mtu; in bnx2i_get_stats()

123