summaryrefslogtreecommitdiffstats
path: root/tools/usb
AgeCommit message (Expand)Author
2016-05-03usbip: adding names db to port operationNobuo Iwata
2016-04-26usbip: tools: Start using VUDC backend in usbip toolsIgor Kotrasinski
2016-04-26usbip: tools: Add vudc backend to usbip toolsKrzysztof Opasiak
2016-04-26usbip: tools: Extract generic code to be shared with vudc backendKrzysztof Opasiak
2015-10-22Merge tag 'usb-for-v4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/bal...Greg Kroah-Hartman
2015-09-27tools: usb: testusb: change the default value for length from 512 to 1024Peter Chen
2015-09-27tools: usb: testusb: change the help textPeter Chen
2015-09-22tools: usbip: detach: avoid calling strlen() at each iterationEric Curtin
2015-01-15tools: ffs-aio-example: use endpoint addresses from descriptorsRobert Baldyga
2015-01-12tools: ffs-aio-example: add missing wMaxPacketSize for HS descsRobert Baldyga
2014-12-14Merge tag 'usb-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds
2014-12-02usbip: remove unneeded structureJulia Lawall
2014-11-20treewide: fix typo in printk and KconfigMasanari Iida
2014-11-20Replace mentions of "list_struct" to "list_head"Andrey Utkin
2014-09-16Merge tag 'v3.17-rc5' into nextFelipe Balbi
2014-09-08Merge tag 'v3.17-rc4' into nextFelipe Balbi
2014-09-04usb: usbip: fix usbip.h path in userspace toolPiotr Król
2014-09-02tools: ffs-test: add compatibility code for old kernelsMichal Nazarewicz
2014-09-02tools: ffs-test: convert to new descriptor formatMichal Nazarewicz
2014-08-25usbip: move usbip userspace code out of stagingValentina Manea
2014-07-21Merge tag 'usb-for-v3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ba...Greg Kroah-Hartman
2014-06-30tools: ffs-test: fix header values endianessMichal Nazarewicz
2014-06-30tools: ffs-aio-example: add license informationRobert Baldyga
2014-06-30tools: ffs-aio-example: convert to new descriptor formatRobert Baldyga
2014-06-30tools: ffs-aio-example: fix header values endianessRobert Baldyga
2014-06-27Revert "tools: ffs-test: convert to new descriptor format fixing compilation ...Felipe Balbi
2014-06-19tools: ffs-test: convert to new descriptor format fixing compilation errorMichal Nazarewicz
2014-05-14tools: usb: aio example applicationsRobert Baldyga
2013-12-04usb: tools: fix a regression issue that gcc can't link to pthreadHuang Rui
2013-03-07tools: usb: ffs-test: Fix build failureMaxin B. John
2013-02-08testusb: remove all mentions of 'usbfs'Sergei Shtylyov
2013-01-11tools/usb: remove unneeded 'continue' and simplify conditionSasha Levin
2012-09-10tools/usb: remove last USBFS userSebastian Andrzej Siewior
2012-06-13testusb: expose looping forever option "l" to userDu, ChangbinX
2012-05-15USB: testusb: add path /dev/bus/usb to default search paths for usbfsDu, ChangbinX
2012-05-07USB: ffs-test: fix length argument of out function callMatthias Fend
2012-03-22Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds
2012-02-28USB: ffs-test: Don't duplicate {get,put}_unaligned*() functionsMatt Fleming
2012-01-24usb: gadget: update Michal Nazarewicz's email addressMichal Nazarewicz
2011-02-28USB: ffs-test: fix header pathDavidlohr Bueso
2011-02-17USB: tools: Add a MakefileDavidlohr Bueso
2011-01-22USB: usbtest - add alignment tests to test scriptMartin Fuzzey
2011-01-22USB: usbtest - add shell script to test HCDsDavid Brownell
2010-05-20USB: testusb: testusb compatibility with FunctionFS gadgetMichal Nazarewicz
2010-05-20USB: testusb: an USB testing applicationDavid Brownell
2010-05-20USB: ffs-test: FunctionFS testing programMichal Nazarewicz
andard/xlnx-soc Yocto Linux Embedded kernelGrokmirror user
aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/lib/strchr.S
blob: 7c83091d1bcdd2c67c03d2af8e69264858985c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Based on arch/arm/lib/strchr.S
 *
 * Copyright (C) 1995-2000 Russell King
 * Copyright (C) 2013 ARM Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <linux/linkage.h>
#include <asm/assembler.h>

/*
 * Find the first occurrence of a character in a string.
 *
 * Parameters:
 *	x0 - str
 *	x1 - c
 * Returns:
 *	x0 - address of first occurrence of 'c' or 0
 */
WEAK(strchr)
	and	w1, w1, #0xff
1:	ldrb	w2, [x0], #1
	cmp	w2, w1
	ccmp	w2, wzr, #4, ne
	b.ne	1b
	sub	x0, x0, #1
	cmp	w2, w1
	csel	x0, x0, xzr, eq
	ret
ENDPROC(strchr)