aic7xxx: deinline large functions, save 80k of text
Subsystems (2)
PATCH 11/31 aic7xxx: deinline large functions, save 80k of text
From: Denis Vlasenko <[email protected]>
- move big inlines into aic79xx_core.c and aic7xxx_core.c
- make ahd_delay just a wrapper around udelay
- mark a few functions static
- fix spelling fix in error message
Signed-off-by Denis Vlasenko <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/aic7xxx/aic79xx_core.c | 601 +++++++++++++++++++++++- drivers/scsi/aic7xxx/aic79xx_inline.h | 548 --------------------- drivers/scsi/aic7xxx/aic79xx_osm.c | 2 drivers/scsi/aic7xxx/aic79xx_osm.h | 130 ----- drivers/scsi/aic7xxx/aic7xxx_core.c | 359 ++++++++++++++ drivers/scsi/aic7xxx/aic7xxx_inline.h | 336 ------------- drivers/scsi/aic7xxx/aic7xxx_osm.c | 6 drivers/scsi/aic7xxx/aic7xxx_osm.h | 85 --- 8 files changed, 1015 insertions(+), 1052 deletions(-)
drivers/scsi/aic7xxx/aic79xx_core.c renamed from drivers/scsi/aic7xxx/aic79xx_core.c~aic7xxx-deinline-large-functions-save-80k-of-text +598 -3
@@ -50,6 +50,601 @@#include <dev/aic7xxx/aicasm/aicasm_insformat.h> #endif +/***************************** Timer Facilities *******************************/ +#define ahd_timer_init init_timer +#define ahd_timer_stop del_timer_sync +typedef void ahd_linux_callback_t (u_long ); +static void +ahd_timer_reset (ahd_timer_t *timer,int usec,ahd_callback_t *func,void *arg) +{ +struct ahd_softc *ahd; + + ahd = (struct ahd_softc *)arg; +del_timer (timer); + timer->data = (u_long )arg; + timer->expires = jiffies + (usec *HZ )/1000000 ; + timer->function = (ahd_linux_callback_t *)func; +add_timer (timer); +} + +/***************************** Low Level I/O **********************************/ +uint8_t +ahd_inb (struct ahd_softc * ahd,long port) +{ +uint8_t x; + +if (ahd->tags[0 ] ==BUS_SPACE_MEMIO ) { + x =readb (ahd->bshs[0 ].maddr + port); + }else { + x =inb (ahd->bshs[(port) >>8 ].ioport + ((port) &0xFF )); + } +mb (); +return (x); +} + +uint16_t +ahd_inw_atomic (struct ahd_softc * ahd,long port) +{ +uint8_t x; + +if (ahd->tags[0 ] ==BUS_SPACE_MEMIO ) { + x =readw (ahd->bshs[0 ].maddr + port); + }else { + x =inw (ahd->bshs[(port) >>8 ].ioport + ((port) &0xFF )); + } +mb (); +return (x); +} + +void +ahd_outb (struct ahd_softc * ahd,long port,uint8_t val) +{ +if (ahd->tags[0 ] ==BUS_SPACE_MEMIO ) { +writeb (val, ahd->bshs[0 ].maddr + port); + }else { +outb (val, ahd->bshs[(port) >>8 ].ioport + (port &0xFF )); + } +mb (); +} + +void +ahd_outw_atomic (struct ahd_softc * ahd,long port,uint16_t val) +{ +if (ahd->tags[0 ] ==BUS_SPACE_MEMIO ) { +writew (val, ahd->bshs[0 ].maddr + port); + }else { +outw (val, ahd->bshs[(port) >>8 ].ioport + (port &0xFF )); + } +mb (); +} + +void +ahd_outsb (struct ahd_softc * ahd,long port,uint8_t *array,int count) +{ +int i; + +/* +* There is probably a more efficient way to do this on Linux +* but we don't use this for anything speed critical and this +* should work. +*/ +for (i =0 ; i < count; i++) +ahd_outb (ahd, port, *array++); +} + +void +ahd_insb (struct ahd_softc * ahd,long port,uint8_t *array,int count) +{ +int i; + +/* +* There is probably a more efficient way to do this on Linux +* but we don't use this for anything speed critical and this +* should work. +*/ +for (i =0 ; i < count; i++) + *array++ =ahd_inb (ahd, port); +} + +/************************ Sequencer Execution Control *************************/ +void +ahd_set_modes (struct ahd_softc *ahd,ahd_mode src,ahd_mode dst) +{ +if (ahd->src_mode == src && ahd->dst_mode == dst) +return ; +#ifdef AHD_DEBUG +if (ahd->src_mode ==AHD_MODE_UNKNOWN + || ahd->dst_mode ==AHD_MODE_UNKNOWN ) +panic ("Setting mode prior to saving it.\n" ); +if ((ahd_debug &AHD_SHOW_MODEPTR ) !=0 ) +printf ("%s: Setting mode 0x%x\n" ,ahd_name (ahd), +ahd_build_mode_state (ahd, src, dst)); +#endif +ahd_outb (ahd,MODE_PTR ,ahd_build_mode_state (ahd, src, dst)); + ahd->src_mode = src; + ahd->dst_mode = dst; +} + +void +ahd_update_modes (struct ahd_softc *ahd) +{ +ahd_mode_state mode_ptr; +ahd_mode src; +ahd_mode dst; + + mode_ptr =ahd_inb (ahd,MODE_PTR ); +#ifdef AHD_DEBUG +if ((ahd_debug &AHD_SHOW_MODEPTR ) !=0 ) +printf ("Reading mode 0x%x\n" , mode_ptr); +#endif +ahd_extract_mode_state (ahd, mode_ptr, &src, &dst); +ahd_known_modes (ahd, src, dst); +} + +ahd_mode_state +ahd_save_modes (struct ahd_softc *ahd) +{ +if (ahd->src_mode ==AHD_MODE_UNKNOWN + || ahd->dst_mode ==AHD_MODE_UNKNOWN ) +ahd_update_modes (ahd); + +return (ahd_build_mode_state (ahd, ahd->src_mode, ahd->dst_mode)); +} + +void +ahd_restore_modes (struct ahd_softc *ahd,ahd_mode_state state) +{ +ahd_mode src; +ahd_mode dst; + +ahd_extract_mode_state (ahd, state, &src, &dst); +ahd_set_modes (ahd, src, dst); +} + +/* +* Allow the sequencer to continue program execution. +* We check here to ensure that no additional interrupt +* sources that would cause the sequencer to halt have been +* asserted. If, for example, a SCSI bus reset is detected +* while we are fielding a different, pausing, interrupt type, +* we don't want to release the sequencer before going back +* into our interrupt handler and dealing with this new +* condition. +*/ +void +ahd_unpause (struct ahd_softc *ahd) +{ +/* +* Automatically restore our modes to those saved +* prior to the first change of the mode. +*/ +if (ahd->saved_src_mode !=AHD_MODE_UNKNOWN + && ahd->saved_dst_mode !=AHD_MODE_UNKNOWN ) { +if ((ahd->flags &AHD_UPDATE_PEND_CMDS ) !=0 ) +ahd_reset_cmds_pending (ahd); +ahd_set_modes (ahd, ahd->saved_src_mode, ahd->saved_dst_mode); + } + +if ((ahd_inb (ahd,INTSTAT ) & ~CMDCMPLT ) ==0 ) +ahd_outb (ahd,HCNTRL , ahd->unpause); + +ahd_known_modes (ahd,AHD_MODE_UNKNOWN ,AHD_MODE_UNKNOWN ); +} + +/*********************** Scatter Gather List Handling *************************/ +void * +ahd_sg_setup (struct ahd_softc *ahd,struct scb *scb, +void *sgptr,dma_addr_t addr,bus_size_t len,int last) +{ + scb->sg_count++; +if (sizeof (dma_addr_t) >4 + && (ahd->flags &AHD_64BIT_ADDRESSING ) !=0 ) { +struct ahd_dma64_seg *sg; + + sg = (struct ahd_dma64_seg *)sgptr; + sg->addr =ahd_htole64 (addr); + sg->len =ahd_htole32 (len | (last ?AHD_DMA_LAST_SEG :0 )); +return (sg +1 ); + }else { +struct ahd_dma_seg *sg; + + sg = (struct ahd_dma_seg *)sgptr; + sg->addr =ahd_htole32 (addr &0xFFFFFFFF ); + sg->len =ahd_htole32 (len | ((addr >>8 ) &0x7F000000 ) + | (last ?AHD_DMA_LAST_SEG :0 )); +return (sg +1 ); + } +} + +static void +ahd_setup_scb_common (struct ahd_softc *ahd,struct scb *scb) +{ +/* XXX Handle target mode SCBs. */ + scb->crc_retry_count =0 ; +if ((scb->flags &SCB_PACKETIZED ) !=0 ) { +/* XXX what about ACA?? It is type 4, but TAG_TYPE == 0x3. */ + scb->hscb->task_attribute = scb->hscb->control &SCB_TAG_TYPE ; + }else { +if (ahd_get_transfer_length (scb) &0x01 ) + scb->hscb->task_attribute =SCB_XFERLEN_ODD ; +else + scb->hscb->task_attribute =0 ; + } + +if (scb->hscb->cdb_len <=MAX_CDB_LEN_WITH_SENSE_ADDR + || (scb->hscb->cdb_len &SCB_CDB_LEN_PTR ) !=0 ) + scb->hscb->shared_data.idata.cdb_plus_saddr.sense_addr = +ahd_htole32 (scb->sense_busaddr); +} + +static void +ahd_setup_data_scb (struct ahd_softc *ahd,struct scb *scb) +{ +/* +* Copy the first SG into the "current" data ponter area. +*/ +if ((ahd->flags &AHD_64BIT_ADDRESSING ) !=0 ) { +struct ahd_dma64_seg *sg; + + sg = (struct ahd_dma64_seg *)scb->sg_list; + scb->hscb->dataptr = sg->addr; + scb->hscb->datacnt = sg->len; + }else { +struct ahd_dma_seg *sg; +uint32_t *dataptr_words; + + sg = (struct ahd_dma_seg *)scb->sg_list; + dataptr_words = (uint32_t *)&scb->hscb->dataptr; + dataptr_words[0 ] = sg->addr; + dataptr_words[1 ] =0 ; +if ((ahd->flags &AHD_39BIT_ADDRESSING ) !=0 ) { +uint64_t high_addr; + + high_addr =ahd_le32toh (sg->len) &0x7F000000 ; + scb->hscb->dataptr |=ahd_htole64 (high_addr <<8 ); + } + scb->hscb->datacnt = sg->len; + } +/* +* Note where to find the SG entries in bus space. +* We also set the full residual flag which the +* sequencer will clear as soon as a data transfer +* occurs. +*/ + scb->hscb->sgptr =ahd_htole32 (scb->sg_list_busaddr|SG_FULL_RESID ); +} + +/*********************** Miscelaneous Support Functions ***********************/ +uint16_t +ahd_inw (struct ahd_softc *ahd,u_int port) +{ +/* +* Read high byte first as some registers increment +* or have other side effects when the low byte is +* read. +*/ +return ((ahd_inb (ahd, port+1 ) <<8 ) |ahd_inb (ahd, port)); +} + +void +ahd_outw (struct ahd_softc *ahd,u_int port,u_int value) +{ +/* +* Write low byte first to accomodate registers +* such as PRGMCNT where the order maters. +*/ +ahd_outb (ahd, port, value &0xFF ); +ahd_outb (ahd, port+1 , (value >>8 ) &0xFF ); +} + +uint32_t +ahd_inl (struct ahd_softc *ahd,u_int port) +{ +return ((ahd_inb (ahd, port)) + | (ahd_inb (ahd, port+1 ) <<8 ) + | (ahd_inb (ahd, port+2 ) <<16 ) + | (ahd_inb (ahd, port+3 ) <<24 )); +} + +void +ahd_outl (struct ahd_softc *ahd,u_int port,uint32_t value) +{ +ahd_outb (ahd, port, (value) &0xFF ); +ahd_outb (ahd, port+1 , ((value) >>8 ) &0xFF ); +ahd_outb (ahd, port+2 , ((value) >>16 ) &0xFF ); +ahd_outb (ahd, port+3 , ((value) >>24 ) &0xFF ); +} + +uint64_t +ahd_inq (struct ahd_softc *ahd,u_int port) +{ +return ((ahd_inb (ahd, port)) + | (ahd_inb (ahd, port+1 ) <<8 ) + | (ahd_inb (ahd, port+2 ) <<16 ) + | (ahd_inb (ahd, port+3 ) <<24 ) + | (((uint64_t )ahd_inb (ahd, port+4 )) <<32 ) + | (((uint64_t )ahd_inb (ahd, port+5 )) <<40 ) + | (((uint64_t )ahd_inb (ahd, port+6 )) <<48 ) + | (((uint64_t )ahd_inb (ahd, port+7 )) <<56 )); +} + +void +ahd_outq (struct ahd_softc *ahd,u_int port,uint64_t value) +{ +ahd_outb (ahd, port, value &0xFF ); +ahd_outb (ahd, port+1 , (value >>8 ) &0xFF ); +ahd_outb (ahd, port+2 , (value >>16 ) &0xFF ); +ahd_outb (ahd, port+3 , (value >>24 ) &0xFF ); +ahd_outb (ahd, port+4 , (value >>32 ) &0xFF ); +ahd_outb (ahd, port+5 , (value >>40 ) &0xFF ); +ahd_outb (ahd, port+6 , (value >>48 ) &0xFF ); +ahd_outb (ahd, port+7 , (value >>56 ) &0xFF ); +} + +u_int +ahd_inb_scbram (struct ahd_softc *ahd,u_int offset) +{ +u_int value; + +/* +* Workaround PCI-X Rev A. hardware bug. +* After a host read of SCB memory, the chip +* may become confused into thinking prefetch +* was required. This starts the discard timer +* running and can cause an unexpected discard +* timer interrupt. The work around is to read +* a normal register prior to the exhaustion of +* the discard timer. The mode pointer register +* has no side effects and so serves well for +* this purpose. +* +* Razor #528 +*/ + value =ahd_inb (ahd, offset); +if ((ahd->bugs &AHD_PCIX_SCBRAM_RD_BUG ) !=0 ) +ahd_inb (ahd,MODE_PTR ); +return (value); +} + +u_int +ahd_inw_scbram (struct ahd_softc *ahd,u_int offset) +{ +return (ahd_inb_scbram (ahd, offset) + | (ahd_inb_scbram (ahd, offset+1 ) <<8 )); +} + +uint32_t +ahd_inl_scbram (struct ahd_softc *ahd,u_int offset) +{ +return (ahd_inw_scbram (ahd, offset) + | (ahd_inw_scbram (ahd, offset+2 ) <<16 )); +} + +uint64_t +ahd_inq_scbram (struct ahd_softc *ahd,u_int offset) +{ +return (ahd_inl_scbram (ahd, offset) + | ((uint64_t )ahd_inl_scbram (ahd, offset+4 )) <<32 ); +} + +struct scb * +ahd_lookup_scb (struct ahd_softc *ahd,u_int tag) +{ +struct scb * scb; + +if (tag >=AHD_SCB_MAX ) +return (NULL ); + scb = ahd->scb_data.scbindex[tag]; +if (scb !=NULL ) +ahd_sync_scb (ahd, scb, +BUS_DMASYNC_POSTREAD |BUS_DMASYNC_POSTWRITE ); +return (scb); +} + +static void +ahd_swap_with_next_hscb (struct ahd_softc *ahd,struct scb *scb) +{ +struct hardware_scb *q_hscb; +struct map_node *q_hscb_map; +uint32_t saved_hscb_busaddr; + +/* +* Our queuing method is a bit tricky. The card +* knows in advance which HSCB (by address) to download, +* and we can't disappoint it. To achieve this, the next +* HSCB to download is saved off in ahd->next_queued_hscb. +* When we are called to queue "an arbitrary scb", +* we copy the contents of the incoming HSCB to the one +* the sequencer knows about, swap HSCB pointers and +* finally assign the SCB to the tag indexed location +* in the scb_array. This makes sure that we can still +* locate the correct SCB by SCB_TAG. +*/ + q_hscb = ahd->next_queued_hscb; + q_hscb_map = ahd->next_queued_hscb_map; + saved_hscb_busaddr = q_hscb->hscb_busaddr; +memcpy (q_hscb, scb->hscb,sizeof (*scb->hscb)); + q_hscb->hscb_busaddr = saved_hscb_busaddr; + q_hscb->next_hscb_busaddr = scb->hscb->hscb_busaddr; + +/* Now swap HSCB pointers. */ + ahd->next_queued_hscb = scb->hscb; + ahd->next_queued_hscb_map = scb->hscb_map; + scb->hscb = q_hscb; + scb->hscb_map = q_hscb_map; + +/* Now define the mapping from tag to SCB in the scbindex */ + ahd->scb_data.scbindex[SCB_GET_TAG (scb)] = scb; +} + +/* +* Tell the sequencer about a new transaction to execute. +*/ +void +ahd_queue_scb (struct ahd_softc *ahd,struct scb *scb) +{ +ahd_swap_with_next_hscb (ahd, scb); + +if (SCBID_IS_NULL (SCB_GET_TAG (scb))) +panic ("Attempt to queue invalid SCB tag %x\n" , +SCB_GET_TAG (scb)); + +/* +* Keep a history of SCBs we've downloaded in the qinfifo. +*/ + ahd->qinfifo[AHD_QIN_WRAP (ahd->qinfifonext)] =SCB_GET_TAG (scb); + ahd->qinfifonext++; + +if (scb->sg_count !=0 ) +ahd_setup_data_scb (ahd, scb); +else +ahd_setup_noxfer_scb (ahd, scb); +ahd_setup_scb_common (ahd, scb); + +/* +* Make sure our data is consistent from the +* perspective of the adapter. +*/ +ahd_sync_scb (ahd, scb,BUS_DMASYNC_PREREAD |BUS_DMASYNC_PREWRITE ); + +#ifdef AHD_DEBUG +if ((ahd_debug &AHD_SHOW_QUEUE ) !=0 ) { +uint64_t host_dataptr; + + host_dataptr =ahd_le64toh (scb->hscb->dataptr); +printf ("%s: Queueing SCB %d:0x%x bus addr 0x%x - 0x%x%x/0x%x\n" , +ahd_name (ahd), +SCB_GET_TAG (scb), scb->hscb->scsiid, +ahd_le32toh (scb->hscb->hscb_busaddr), + (u_int)((host_dataptr >>32 ) &0xFFFFFFFF ), + (u_int)(host_dataptr &0xFFFFFFFF ), +ahd_le32toh (scb->hscb->datacnt)); + } +#endif +/* Tell the adapter about the newly queued SCB */ +ahd_set_hnscb_qoff (ahd, ahd->qinfifonext); +} + +/************************** Interrupt Processing ******************************/ +/* +* See if the firmware has posted any completed commands +* into our in-core command complete fifos. +*/ +#define AHD_RUN_QOUTFIFO 0x1 +#define AHD_RUN_TQINFIFO 0x2 +static u_int +ahd_check_cmdcmpltqueues (struct ahd_softc *ahd) +{ +u_int retval; + + retval =0 ; +ahd_dmamap_sync (ahd, ahd->shared_data_dmat, ahd->shared_data_map.dmamap, +/*offset*/ ahd->qoutfifonext *sizeof (*ahd->qoutfifo), +/*len*/ sizeof (*ahd->qoutfifo),BUS_DMASYNC_POSTREAD ); +if (ahd->qoutfifo[ahd->qoutfifonext].valid_tag + == ahd->qoutfifonext_valid_tag) + retval |=AHD_RUN_QOUTFIFO ; +#ifdef AHD_TARGET_MODE +if ((ahd->flags &AHD_TARGETROLE ) !=0 + && (ahd->flags &AHD_TQINFIFO_BLOCKED ) ==0 ) { +ahd_dmamap_sync (ahd, ahd->shared_data_dmat, + ahd->shared_data_map.dmamap, +ahd_targetcmd_offset (ahd, ahd->tqinfifofnext), +/*len*/ sizeof (struct target_cmd ), +BUS_DMASYNC_POSTREAD ); +if (ahd->targetcmds[ahd->tqinfifonext].cmd_valid !=0 ) + retval |=AHD_RUN_TQINFIFO ; + } +#endif +return (retval); +} + +/* +* Catch an interrupt from the adapter +*/ +int +ahd_intr (struct ahd_softc *ahd) +{ +u_int intstat; + +if ((ahd->pause &INTEN ) ==0 ) { +/* +* Our interrupt is not enabled on the chip +* and may be disabled for re-entrancy reasons, +* so just return. This is likely just a shared +* interrupt. +*/ +return (0 ); + } + +/* +* Instead of directly reading the interrupt status register, +* infer the cause of the interrupt by checking our in-core +* completion queues. This avoids a costly PCI bus read in +* most cases. +*/ +if ((ahd->flags &AHD_ALL_INTERRUPTS ) ==0 + && (ahd_check_cmdcmpltqueues (ahd) !=0 )) + intstat =CMDCMPLT ; +else + intstat =ahd_inb (ahd,INTSTAT ); + +if ((intstat &INT_PEND ) ==0 ) +return (0 ); + +if (intstat &CMDCMPLT ) { +ahd_outb (ahd,CLRINT ,CLRCMDINT ); + +/* +* Ensure that the chip sees that we've cleared +* this interrupt before we walk the output fifo. +* Otherwise, we may, due to posted bus writes, +* clear the interrupt after we finish the scan, +* and after the sequencer has added new entries +* and asserted the interrupt again. +*/ +if ((ahd->bugs &AHD_INTCOLLISION_BUG ) !=0 ) { +if (ahd_is_paused (ahd)) { +/* +* Potentially lost SEQINT. +* If SEQINTCODE is non-zero, +* simulate the SEQINT. +*/ +if (ahd_inb (ahd,SEQINTCODE ) !=NO_SEQINT ) + intstat |=SEQINT ; + } + }else { +ahd_flush_device_writes (ahd); + } +ahd_run_qoutfifo (ahd); + ahd->cmdcmplt_counts[ahd->cmdcmplt_bucket]++; + ahd->cmdcmplt_total++; +#ifdef AHD_TARGET_MODE +if ((ahd->flags &AHD_TARGETROLE ) !=0 ) +ahd_run_tqinfifo (ahd,/*paused*/ FALSE); +#endif + } + +/* +* Handle statuses that may invalidate our cached +* copy of INTSTAT separately. +*/ +if (intstat ==0xFF && (ahd->features &AHD_REMOVABLE ) !=0 ) { +/* Hot eject. Do nothing */ + }else if (intstat &HWERRINT ) { +ahd_handle_hwerrint (ahd); + }else if ((intstat & (PCIINT |SPLTINT )) !=0 ) { + ahd->bus_intr (ahd); + }else { + +if ((intstat &SEQINT ) !=0 ) +ahd_handle_seqint (ahd, intstat); + +if ((intstat &SCSIINT ) !=0 ) +ahd_handle_scsiint (ahd, intstat); + } +return (1 ); +}/***************************** Lookup Tables **********************************/ static char *ahd_chip_names[] =
@@ -303,7 +898,7 @@ ahd_currently_packetized(struct ahd_softreturn (packetized); } -static __inlineint +static int ahd_set_active_fifo (struct ahd_softc *ahd) {u_int active_fifo;
@@ -7169,7 +7764,7 @@ ahd_resume(struct ahd_softc *ahd)* scbid that should be restored once manipualtion * of the TCL entry is complete. */ -static __inlineu_int +static u_int ahd_index_busy_tcl (struct ahd_softc *ahd,u_int *saved_scbid,u_int tcl) {/*
@@ -8285,7 +8880,7 @@ ahd_handle_scsi_status(struct ahd_softcbreak ; }case SCSI_STATUS_OK : -printf ("%s: Interrupted for staus of 0???\n" , +printf ("%s: Interrupted for status of 0???\n" ,ahd_name (ahd));/* FALLTHROUGH */ default :
drivers/scsi/aic7xxx/aic79xx_inline.h renamed from drivers/scsi/aic7xxx/aic79xx_inline.h~aic7xxx-deinline-large-functions-save-80k-of-text +19 -529
619 lines not on this page · raw message
drivers/scsi/aic7xxx/aic79xx_osm.c renamed from drivers/scsi/aic7xxx/aic79xx_osm.c~aic7xxx-deinline-large-functions-save-80k-of-text +1 -1
@@ -462,7 +462,7 @@ ahd_linux_queue(struct scsi_cmnd * cmd,return rtn; } -static inline struct scsi_target ** +static struct scsi_target **ahd_linux_target_in_softc (struct scsi_target *starget) { struct ahd_softc *ahd =
drivers/scsi/aic7xxx/aic79xx_osm.h renamed from drivers/scsi/aic7xxx/aic79xx_osm.h~aic7xxx-deinline-large-functions-save-80k-of-text +11 -119
168 lines not on this page · raw message
drivers/scsi/aic7xxx/aic7xxx_core.c renamed from drivers/scsi/aic7xxx/aic7xxx_core.c~aic7xxx-deinline-large-functions-save-80k-of-text +359 -0
365 lines not on this page · raw message
drivers/scsi/aic7xxx/aic7xxx_inline.h renamed from drivers/scsi/aic7xxx/aic7xxx_inline.h~aic7xxx-deinline-large-functions-save-80k-of-text +13 -323
358 lines not on this page · raw message
drivers/scsi/aic7xxx/aic7xxx_osm.c renamed from drivers/scsi/aic7xxx/aic7xxx_osm.c~aic7xxx-deinline-large-functions-save-80k-of-text +3 -3
@@ -392,7 +392,7 @@ static int ahc_linux_unit;/********************************* Inlines ************************************/ static __inlinevoid ahc_linux_unmap_scb (struct ahc_softc *,struct scb *); -static __inlineint ahc_linux_map_seg (struct ahc_softc *ahc,struct scb *scb, +static int ahc_linux_map_seg (struct ahc_softc *ahc,struct scb *scb,struct ahc_dma_seg *sg,dma_addr_t addr,bus_size_t len);
@@ -417,7 +417,7 @@ ahc_linux_unmap_scb(struct ahc_softc *ah } } -static __inlineint +static int ahc_linux_map_seg (struct ahc_softc *ahc,struct scb *scb,struct ahc_dma_seg *sg,dma_addr_t addr,bus_size_t len) {
@@ -491,7 +491,7 @@ ahc_linux_queue(struct scsi_cmnd * cmd,return rtn; } -static inline struct scsi_target ** +static struct scsi_target **ahc_linux_target_in_softc (struct scsi_target *starget) { struct ahc_softc *ahc =
drivers/scsi/aic7xxx/aic7xxx_osm.h renamed from drivers/scsi/aic7xxx/aic7xxx_osm.h~aic7xxx-deinline-large-functions-save-80k-of-text +11 -74
113 lines not on this page · raw message
_